Jump to content
Excelsior Forums
martinso

Generics support

Recommended Posts

Hi,

I have understood from the messages here that JRE-less deployment is not possible today with Java 1.5. But can I use generics / enhanced for-loop / autoboxing unboxing (not using nay new 1.5 API's), compile it for Java 1.4 class file format and have a JET-compilation for a JRE-less deployment with JET 3.7.

/Martin S?derstr?m

Share this post


Link to post
Share on other sites

javac from 1.5 does not support compilation to 1.4 format unless '-source 1.4' option is specified. But, with this option it rejects generics.

So, I see no way how to do it.

Share this post


Link to post
Share on other sites

Actually I tried RetroWeaver, a tool to transform Java 1.5 class files to 1.4 or 1.3 ones. The idea is to use generics and all of that stuff in JVMs that does not support Java 1.5. Seems to work fine with JET so far.

Thanks

/Martin

Share this post


Link to post
Share on other sites

×