Javac default version
Jonathan Gibbons
Jonathan.Gibbons at Sun.COM
Thu Jun 14 11:28:51 PDT 2007
Narayana,
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 (com.sun.tools.javac.jvm.Taget)? 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 (http://open-esb.org)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20070614/5cee24b2/attachment.html
More information about the compiler-dev
mailing list