Build failure on Mac "javac: invalid flag"

Paul Sandoz paul.sandoz at oracle.com
Mon Nov 19 01:12:37 PST 2012


On Nov 16, 2012, at 10:36 PM, Mike Duigou <mike.duigou at oracle.com> wrote:

> Very odd. 
> 

BTW, i am using the new build system and building everything.

Configuration summary:
* Debug level:    release
* JDK variant:    normal
* JVM variants:   server
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
* Boot JDK:       /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home


> Do you see the auxiliary class warnings?
> 

Yes, with my patch e.g.:

Compiling 9451 files for BUILD_JDK
/Users/sandoz/Projects/jdk8/lambda/jdk/src/share/classes/java/util/stream/op/FindAnyOp.java:71: warning: auxiliary class AbstractShortCircuitTask in /Users/sandoz/Projects/jdk8/lambda/jdk/src/share/classes/java/util/stream/op/AbstractTask.java should not be accessed from outside its own source file
    private static class FindAnyTask<S, T> extends AbstractShortCircuitTask<S, T, Optional<T>, FindAnyTask<S, T>> {

Without my patch i see no such warnings (the above source file compiles fine). 

The error seems to be related to compiling the Mac specific Java source, perhaps using the boot JDK?

Paul.


More information about the lambda-dev mailing list