jdk11 javac doesn't support --release

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue May 1 19:51:33 UTC 2018


Remi,

If you want a quick patch to unblock your work, here it is:

$ hg diff make
diff -r ae58e24ce81a make/gendata/Gendata-jdk.compiler.gmk
--- a/make/gendata/Gendata-jdk.compiler.gmk    Mon Apr 30 09:49:08 2018 
-0700
+++ b/make/gendata/Gendata-jdk.compiler.gmk    Tue May 01 12:49:46 2018 
-0700
@@ -83,6 +83,14 @@
          $(CT_MODULESOURCEPATH) \
          $(CT_MODULES) \
          >$(@D)/A/system-modules
+    $(MKDIR) $(@D)/B
+    $(JAVA_SMALL) $(INTERIM_LANGTOOLS_ARGS) \
+        $(COMPILECREATESYMBOLS_ADD_EXPORTS) \
+        -classpath $(BUILDTOOLS_OUTPUTDIR)/create_symbols \
+        build.tools.symbolgenerator.TransitiveDependencies \
+        $(CT_MODULESOURCEPATH) \
+        $(CT_MODULES) \
+        >$(@D)/B/system-modules
      $(TOUCH) $@

  # Can't generate ct.sym directly into modules libs as the 
SetupJarArchive macro


On 05/01/2018 12:49 PM, Jonathan Gibbons wrote:
> Rémi,
>
> This caught me out last week as well, and yes, it is being fixed; we 
> should see a fix by the end of the week.
>
> We have Plan A, B and C, for a hot fix, not-so-hot fix, and long term 
> fix ;-)
>
> -- Jon
>
>
> On 5/1/18 12:16 PM, Remi Forax wrote:
>> Hi all, Hi Jan,
>> javac doesn't support --release 11 [1] which preclude me to fully 
>> test some projects with the jdk 11 or any amber branches.
>>
>> /usr/jdk/jdk-11/bin/javac --release 11
>> error: release version 11 not supported
>> Usage: javac <options> <source files>
>> use --help for a list of possible options
>>
>> Is there a plan to fix that soon ?
>>
>> Rémi
>>
>> [1] https://bugs.openjdk.java.net/browse/JDK-8193784
>



More information about the compiler-dev mailing list