Javac default version

Jonathan Gibbons Jonathan.Gibbons at Sun.COM
Thu Jun 14 11:28:51 PDT 2007


If you're compiling against the classes for Java 6, -target 6 is the 
right default.   Anyone wanting to compile for the Java 5 platform 
should set -target 1.5 and should also set a matching bootclasspath, so 
that they don't accidentally use API only available in Java 6.   That 
would not be reasonable for the OpenJDK compiler.

-- Jon G

Narayana Rallabandi wrote:
> Hi,
> Is there any specific reason why the default compile target being set 
> to JDK 1.6 ( I think still lot of users 
> are of JDK 1.5 only. It will be useful for them so that they do not 
> need to set the -target option every time.
> -- 
> Thanks,
> Narayanaa
> Open ESB Community (

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the compiler-dev mailing list