[concurrency-interest] Why not J2SE 5?

David Holmes dholmes@dltech.com.au
Tue, 7 Dec 2004 01:35:23 +1000


Osvaldo writes:
> No it doesn't work.  This produces the following output:
> "javac: source release 1.5 requires target release 1.5"

Think about this a bit. You have to have compatible source and target
options. If you want source 1.5 you must have target 1.5 ! But you can use
source 1.4 and target 1.4 to produce a 1.4 version.

There is no magic way to use 1.5 language features and have them work on the
1.4 VM - which is not what the original poster was talking about anyway.
They wanted to update their development environment to 1.5 while running the
production on 1.4 and you CAN do that.

David Holmes