Community
Participate
Working Groups
See https://bugs.openjdk.java.net/browse/JDK-8028563
A generic version of this is bug 536194. I don't think we must follow javac in this to be a compliant compiler.
(In reply to Jay Arthanareeswaran from comment #1) >I don't think we must follow javac > in this to be a compliant compiler. I agree. [Based on the following: This bug is based on the https://bugs.openjdk.java.net/browse/JDK-8028563 which is based on JEP 182 (http://openjdk.java.net/jeps/182). Quoting verbatim from the Section Motivation of that JEP, "The source and target options are not mandated by the Java SE specification and are provided for programmer convenience. ". Hence it can be concluded that this is not part of specification.]
Since we decided to continue to offer the support, the only thing we need to do is to adjust the --release option since Java 12 and beyond won't have the signatures for 1.6. This affects the compiler options and the UI.
Note: As per http://mail.openjdk.java.net/pipermail/jdk-dev/2019-February/002639.html,"JDK includes a regression tests that explicitly checks that retired source versions are not supported" - to recheck that the specs do not mention anything and its just an implementation detail.
(In reply to Dani Megert from comment #3) > Since we decided to continue to offer the support, the only thing we need to > do is to adjust the --release option since Java 12 and beyond won't have the > signatures for 1.6. > > This affects the compiler options and the UI. With fix for bug 540922, command line compiler falls back to the next version, for e.g. if --release 1.6 is used, it will pick 1.7 as release. For UI though, it picks what is selected in the UI and if that release is not found, it will throw an error and bail out of the compilation. Adjusting the UI to disable 1.6 if JRE 12 is used should do the job.
New Gerrit change created: https://git.eclipse.org/r/138639
Gerrit change https://git.eclipse.org/r/138639 was merged to [BETA_JAVA_12]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=6890a2a08b06d4d9f5760cf068d2f6afa815aaf9