Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strongly typed argument - List<> #6

Open
GoogleCodeExporter opened this issue Aug 27, 2015 · 0 comments
Open

Strongly typed argument - List<> #6

GoogleCodeExporter opened this issue Aug 27, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 4 Dec 2011 at 10:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant