Skip to content

Strongly typed argument - List<> #6

@GoogleCodeExporter

Description

@GoogleCodeExporter
In the class UITabBarController, the method setViewControllers takes argument 
List of type UIViewController. However, in the generated java code, the 
argument is just List and not List<UIViewController>

An advice that looks similar to below could be used. This advice will be useful 
even for C wrapper generation. Since the below advice can be used to generate a 
strongly typed java code as well (in case of above mentioned example), which 
would be the right place for this advice? Is it best to have a separate xml 
file, or do you have an thought on this?

<class name="UITabBarController">
 <method name="setViewControllers">
   <argument position="0"
             type="List&lt;UIViewController&gt;"
             retain="true"/>
 </method>

 <method name="getViewControllers">
   <return type="List&lt;UIViewController&gt;"
           release="true"/>
 </method>
</class>

Thanks,

Original issue reported on code.google.com by spoorthi.dsilva@gmail.com on 4 Dec 2011 at 10:27

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions