JavaC "-release" option no longer working?

Uwe Schindler uschindler at apache.org
Mon Sep 19 22:15:29 UTC 2016


Thanks Mandy,

I fixed our builds: https://github.com/apache/lucene-solr/commit/3712bf58196cd0bd56fad213547dee12029e7cbf

Uwe

-----
Uwe Schindler
uschindler at apache.org 
ASF Member, Apache Lucene PMC / Committer
Bremen, Germany
http://lucene.apache.org/

> -----Original Message-----
> From: Mandy Chung [mailto:mandy.chung at oracle.com]
> Sent: Monday, September 19, 2016 6:33 PM
> To: Uwe Schindler <uschindler at apache.org>
> Cc: Remi Forax <forax at univ-mlv.fr>; rory odonnell
> <rory.odonnell at oracle.com>; compiler-dev at openjdk.java.net; Muneer
> Kolarkunnu <abdul.kolarkunnu at oracle.com>
> Subject: Re: JavaC "-release" option no longer working?
> 
> The -release option was removed in jdk-9+135 [1]:
>    https://bugs.openjdk.java.net/browse/JDK-8160851
> 
> Mandy
> [1] http://hg.openjdk.java.net/jdk9/dev/langtools/rev/047d4d42b466
> 
> 
> > On Sep 19, 2016, at 6:31 AM, Uwe Schindler <uschindler at apache.org>
> wrote:
> >
> > Hi,
> >
> > What is the JDK bugtracker issue about this? I am asking because I did not
> see any changelog entry about this, otherwise I would have figured it out. I
> don't have build 136 on my local machine yet, so I just posted what Jenkins
> was complaining about!
> >
> > Uwe
> >
> > -----
> > Uwe Schindler
> > uschindler at apache.org
> > ASF Member, Apache Lucene PMC / Committer
> > Bremen, Germany
> > http://lucene.apache.org/
> >> -----Original Message-----
> >> From: Remi Forax [mailto:forax at univ-mlv.fr]
> >> Sent: Monday, September 19, 2016 3:24 PM
> >> To: Uwe Schindler <uschindler at apache.org>
> >> Cc: 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>; compiler-dev at openjdk.java.net
> >> Subject: Re: JavaC "-release" option no longer working?
> >>
> >> Hi Uwe,
> >> Most options of javac now use the GNU style,
> >> so it's --release instead of -release.
> >>
> >> cheers,
> >> Rémi
> >>
> >> ----- 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?
> >>
> >>> 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