JavaC "-release" option no longer working?

Andrey Nazarov andrey.x.nazarov at oracle.com
Mon Sep 19 13:27:03 UTC 2016


Hi,

Javac now uses GNU style options.

Try --release.

see javac --help


--Andrey


On 19.09.2016 16:05, Uwe Schindler wrote:
> Hi,
>
> 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:
>
> http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/17849/console
>
> compile-core:
>      [mkdir] Created dir: /home/jenkins/workspace/Lucene-Solr-master-Linux/lucene/build/core/classes/java
>      [javac] Compiling 773 source files to /home/jenkins/workspace/Lucene-Solr-master-Linux/lucene/build/core/classes/java
>      [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
>
> -----
> Uwe Schindler
> uschindler at apache.org
> ASF Member, Apache Lucene PMC / Committer
> Bremen, Germany
> http://lucene.apache.org/
>
>



More information about the compiler-dev mailing list