JavaC "-release" option no longer working?
jonathan.gibbons at oracle.com
Mon Sep 19 16:22:21 UTC 2016
A more accurate statement would be that most *new* options of javac use the GNU style.
With the exception of -classpath and -sourcepath, we have not changed any options that existed prior to JDK 9, and for those two options, we added new-style aliases, without removing the old forms.
On 9/19/16 6:24 AM, Remi Forax wrote:
> Hi Uwe,
> Most options of javac now use the GNU style,
> so it's --release instead of -release.
> ----- Mail original -----
>> De: "Uwe Schindler" <uschindler at apache.org>
>> À: "rory odonnell" <rory.odonnell at oracle.com>, "Dalibor Topic" <dalibor.topic at oracle.com>, "Balchandra Vaidya"
>> <balchandra.vaidya at oracle.com>, "Muneer Kolarkunnu" <abdul.kolarkunnu at oracle.com>
>> Cc: compiler-dev at openjdk.java.net
>> Envoyé: Lundi 19 Septembre 2016 15:05:22
>> Objet: JavaC "-release" option no longer working?
>> The Lucene team is already using the new "-release" option instead of
>> "-source"/"-target" where applicable (JDK 9+), to allow real cross-compiling.
>> Unfortunately, it is no longer working when we upgraded from build 134 to build
>> 136 last night on our Jenkins server:
>> [mkdir] Created dir:
>> [javac] Compiling 773 source files to
>> [javac] javac: invalid flag: -release
>> [javac] Usage: javac <options> <source files>
>> [javac] use --help for a list of possible options
>> Is this an intended change - what's wrong? I did not see any log entries?
>> I reverted back to build 134 for now.
>> Uwe Schindler
>> uschindler at apache.org
>> ASF Member, Apache Lucene PMC / Committer
>> Bremen, Germany
More information about the compiler-dev