tags:

views:

81

answers:

4

Hi, When i compiled my application in blackberry it shows the following error. generics are not supported in -source 1.3 (use -source 5 or higher to enable generics) how to solve this

A: 

It seems the JDK5 is not yet supported.

Same question was asked on the blackberrry forum but about enum support:

alt text

jdecuyper
A: 

Sadly, the BlackBerry api is very behind in terms of Java versioning. There's no Generics, no Maps, no Enums - it's based around JDK 1.3.

I believe there is no way of enabling this feature within your BlackBerry app. If you find one, I'd be very interested to hear about it.

Spedge
A: 

This is a limitation of J2ME, which uses a subset of the J2SE (no collections, reflection, etc.) and a Java language level of 1.3. Any code written for J2SE will most likely need to be manually ported.

Marc Novakowski
+1  A: 
ddopson