04-15-2013 06:52 AM
I have a Java 1.6 code and I need to use this for Blackberry which is compatible with JDK 1.4. The prominent challenge I face here is the use of generics and collections in JDK 1.6 which are not supported by JDK 1.4.
1) I used Retrotranslator tool to convert 1.6 jar to 1.4 jar and added in my project. Project is now able to clean and build without any error, but if I access any of the API from that external 1.4 converted jar it is giving me build time error for the class where i used that API .
Error:: "Error preverifying class com.corp.type.json.TypeService[class of my project].
VERIFIER ERROR com/corp/type/json/AbstractJsonDataTypeProvider[cl
Cannot find class java/util/Map"
2) Is there any way to achive backward compatibilty without using any tool.
Any pointers to achieve this backward compatibility with/without using tool would be helpful. Thanks in advance.
04-15-2013 07:01 AM
04-15-2013 10:07 AM
04-15-2013 10:16 AM