Bug 24085 - Spec parser doesn't check that type='' matches tp:type=''.
Summary: Spec parser doesn't check that type='' matches tp:type=''.
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-spec (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/sm...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2009-09-22 09:42 UTC by Will Thompson
Modified: 2010-05-14 03:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Will Thompson 2009-09-22 09:42:02 UTC
Suppose you define OhHai as a synonym for a{us} as follows:

  <tp:mapping name="Oh_Hai">
    <tp:member name="u" name="Contact"/>
    <tp:member name="s" name="How_Exciting"/>
  </tp:mapping>

And then you annotate a method argument as having that type, but get
the D-Bus type wrong:

  <method name="GetParty" tp:name-for-bindings="Get_Party">
    <arg direction="in" name="Wear_Party" type="au"/>
    <arg direction="out" name="Fly"
    	 type="a{ss}" tp:type="Oh_Hai"/>
    <!-- whoops  ^ -->
  </method>

I'd expect the doc generator to complain, but it did not.
Comment 1 Simon McVittie 2010-05-14 03:42:32 UTC
Fixed in git, will be in 0.19.6


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.