Can we use generic or collection classes in blackberry app development

痞子三分冷 提交于 2019-12-23 02:58:09

问题


I am a newbie in blackberry app development. I am making a Blackberry Project using BB JRE 5.0. And i want to integrate another project into it which is working fine with J2SE 1.5. How can i achieve this. Is it possible? If no, then how to use generic and collection classes in blackberry development. means which BB JRE supports collection and generic classes. Please suggest me some alternative, i ll be very thankful to you all.

Thanks in Advance.


回答1:


BlackBerry Java SDK does not support generics and Collections classes from Java 2 Standard Edition.

RAPC compiler (BlackBerry compiler) compiles your java files with -target 1.3 option, which means that binary code should be compatible with java 1.3. And there are no generics.

Also you cannot use enums and all java 1.5 stuff.

Only classes listed in RIM Java API are available.

Check this link for the most recent Java API javadoc:

http://www.blackberry.com/developers/docs/7.1.0api/index.html?net/rim/device/api/crypto/keystore/package-summary.html



来源:https://stackoverflow.com/questions/15676776/can-we-use-generic-or-collection-classes-in-blackberry-app-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!