javac8 with jdk7

Liam Miller-Cushon cushon at
Tue Mar 25 21:04:02 UTC 2014


I'm curious if there's any interest in reducing javac's dependence on the
specific JDK version it's running on. Currently javac8 works with jdk7 only
if it's on the jvm's bootclasspath, because of some changes to the javax
classes that are also in rt.jar. (Specifically: the addition of
StandardLocation.NATIVE_HEADER_OUTPUT and SourceVersion.RELEASE_8.)

Being able to run javacN on at least jdkN-1 would be convenient when
working with code that invokes javac programmatically, since configuring
the bootclasspath complicates deployment.

Any thoughts on whether this would be worthwhile?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list