-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
9
-
x86
-
os_x
FULL PRODUCT VERSION :
[jdk9 562]$ /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+135-jigsaw-nightly-h5480-20160909)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+135-jigsaw-nightly-h5480-20160909, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
[jdk9 561]$ uname -a
Darwin Scotts-iMac.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
El Capitan, version 10.11.6
EXTRA RELEVANT SYSTEM CONFIGURATION :
[jdk9 560]$ bash ./configure -n
Running generated-configure.sh
configure: Configuration created at Wed Sep 14 15:35:36 PDT 2016.
configure: configure script generated at timestamp 1472718471.
checking for basename... /usr/bin/basename
checking for bash... /bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for gunzip... /usr/bin/gunzip
checking for pigz... no
checking for gzip... /usr/bin/gzip
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /usr/bin/mktemp
checking for mv... /bin/mv
checking for nawk... no
checking for gawk... /usr/local/bin/gawk
checking for printf... /usr/bin/printf
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for gtar... no
checking for tar... /usr/bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /usr/bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for cygpath... no
checking for greadlink... no
checking for readlink... /usr/bin/readlink
checking for df... /bin/df
checking for cpio... /usr/bin/cpio
checking for nice... /usr/bin/nice
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking target system type... x86_64-apple-darwin15.6.0
checking openjdk-build os-cpu... macosx-x86_64
checking openjdk-target os-cpu... macosx-x86_64
checking compilation type... native
checking for top-level directory... /Volumes/ScottBackup/Java9/jdk9
checking if custom source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which debug level to use... release
checking which variants of the JVM to build... server
checking for xcodebuild... /usr/bin/xcodebuild
checking for sdk name...
checking for sysroot...
checking for toolchain path...
checking for extra path...
checking where to store configuration... in default location
checking what configuration name to use... macosx-x86_64-normal-server-release
checking for apt-get... no
checking for yum... no
checking for port... no
checking for pkgutil... pkgutil
checking for gmake... no
checking for make... /usr/bin/make
configure: Testing potential make at /usr/bin/make, found using make in PATH
configure: Using GNU make at /usr/bin/make (version: GNU Make 3.81)
checking if make --output-sync is supported... no
checking if find supports -delete... yes
tar: Must specify one of -c, -r, -t, -u, -x
checking what type of tar was found...
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for ldd... no
checking for otool... /usr/bin/otool
checking for greadelf... /usr/local/bin/greadelf
checking for hg... /usr/local/bin/hg
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking for dtrace... /usr/sbin/dtrace
checking for gpatch... no
checking for patch... /usr/bin/patch
checking for dsymutil... /usr/bin/dsymutil
checking for xattr... /usr/bin/xattr
checking for codesign... /usr/bin/codesign
checking if openjdk_codesign certificate is present... no
checking for SetFile... /usr/bin/SetFile
checking if bash supports pipefail... yes
checking if bash supports errexit (-e)... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking headful support... include support for both headful and headless
yes (default)
checking for version string... 9-internal+0-2016-09-14-153537.starksm.jdk9
configure: Found potential Boot JDK using /usr/libexec/java_home
checking for Boot JDK... /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
checking Boot JDK version... java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+135-jigsaw-nightly-h5480-20160909) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+135-jigsaw-nightly-h5480-20160909, mixed mode)
checking for java in Boot JDK... ok
checking for javac in Boot JDK... ok
checking for javah in Boot JDK... ok
checking for jar in Boot JDK... ok
checking for jarsigner in Boot JDK... ok
checking if Boot JDK supports modules... yes
checking if Boot JDK is 32 or 64 bits... 64
checking for Build JDK... yes, will use output dir
configure: Xcode major version: 7
configure: Using default toolchain clang (clang/LLVM)
checking for clang... /usr/bin/clang
checking resolved symbolic links for CC... no symlink
configure: Using clang C compiler version 7.3.0 [Apple LLVM version 7.3.0 (clang-703.0.31) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin]
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking for clang++... /usr/bin/clang++
checking resolved symbolic links for CXX... no symlink
configure: Using clang C++ compiler version 7.3.0 [Apple LLVM version 7.3.0 (clang-703.0.31) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin]
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/clang++ accepts -g... yes
checking how to run the C preprocessor... /usr/bin/clang -E
checking how to run the C++ preprocessor... /usr/bin/clang++ -E
checking for ar... ar
configure: Rewriting AR to "/usr/bin/ar"
checking for lipo... /usr/bin/lipo
checking for strip... strip
configure: Rewriting STRIP to "/usr/bin/strip"
checking for nm... nm
configure: Rewriting NM to "/usr/bin/nm"
checking for gobjdump... gobjdump
configure: Rewriting OBJDUMP to "/usr/local/bin/gobjdump"
checking for jtreg... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking size of int *... 8
checking for target address size... 64 bits
checking whether byte ordering is bigendian... no
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if native warnings are errors... yes (default)
checking what type of native debug symbols to use... zipped
checking for dtrace tool... /usr/sbin/dtrace
checking sys/sdt.h usability... yes
checking sys/sdt.h presence... yes
checking for sys/sdt.h... yes
checking if dtrace should be built... yes, dependencies present
checking if Hotspot gtest unit tests should be built... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking for FREETYPE... yes
checking for freetype... yes (using pkg-config)
checking if we can compile and link with freetype... yes
checking if we should bundle freetype... no
checking for which libjpeg to use... bundled
checking for which giflib to use... bundled
checking for which libpng to use... bundled
checking for compress in -lz... yes
checking for which zlib to use... system
checking for which lcms to use... bundled
checking for cos in -lm... yes
checking for dlopen in -ldl... yes
checking if elliptic curve crypto implementation is present... yes
checking if jtreg failure handler should be built... no, missing jtreg
checking if the CDS classlist generation should be enabled... yes
checking for number of cores... 4
checking for memory size... 32768 MB
checking for appropriate number of jobs to run in parallel... 4
checking flags for boot jdk java command ... -Duser.language=en -Duser.country=US
checking flags for boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for bootcycle boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for boot jdk java command for small workloads... -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
checking whether to use sjavac... no
checking whether to use javac server... yes
checking If precompiled header is enabled... yes
checking is ccache enabled... no
checking if build directory is on local disk... yes
checking JVM features for JVM variant 'server'... all-gcs cds compiler1 compiler2 dtrace fprof jni-check jvmci jvmti management nmt services vm-structs
configure: creating /Volumes/ScottBackup/Java9/jdk9/build/macosx-x86_64-normal-server-release/configure-support/config.status
====================================================
The existing configuration has been successfully checked in
/Volumes/ScottBackup/Java9/jdk9/build/macosx-x86_64-normal-server-release
using configure arguments ''-n''.
Configuration summary:
* Debug level: release
* HS debug level: product
* JDK variant: normal
* JVM variants: server
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
* Version string: 9-internal+0-2016-09-14-153537.starksm.jdk9 (9-internal)
Tools summary:
* Boot JDK: java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+135-jigsaw-nightly-h5480-20160909) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+135-jigsaw-nightly-h5480-20160909, mixed mode) (at /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home)
* Toolchain: clang (clang/LLVM from Xcode 7.3.1)
* C Compiler: Version 7.3.0 (at /usr/bin/clang)
* C++ Compiler: Version 7.3.0 (at /usr/bin/clang++)
Build performance summary:
* Cores to use: 4
* Memory limit: 32768 MB
A DESCRIPTION OF THE PROBLEM :
While running make all on the current http://hg.openjdk.java.net/jdk9/jdk9 source repository, the compile fails with the following assertion:
[jdk9 558]$ make all
Building target 'all' in configuration 'macosx-x86_64-normal-server-release'
Building JVM variant 'server' with features 'all-gcs cds compiler1 compiler2 dtrace fprof jni-check jvmci jvmti management nmt services vm-structs'
Compiling 155 files for BUILD_TOOLS_JDK
Compiling 198 files for BUILD_INTERIM_RMIC
Compiling 31 files for BUILD_JRTFS
An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationTargetType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationTargetType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
at com.sun.tools.javac.util.Assert.error(jdk.compiler@9-ea/Assert.java:162)
at com.sun.tools.javac.code.TypeAnnotations.targetToAnnotationType(jdk.compiler@9-ea/TypeAnnotations.java:241)
at com.sun.tools.javac.code.TypeAnnotations.lambda$annotationTargetType$3(jdk.compiler@9-ea/TypeAnnotations.java:178)
at java.util.stream.ReferencePipeline$3$1.accept(java.base@9-ea/ReferencePipeline.java:195)
at java.util.Iterator.forEachRemaining(java.base@9-ea/Iterator.java:120)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(java.base@9-ea/Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea/AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea/AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea/ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea/AbstractPipeline.java:234)
at com.sun.tools.javac.util.Assert.error(jdk.compiler@9-ea/Assert.java:162)
at java.util.stream.ReferencePipeline.reduce(java.base@9-ea/ReferencePipeline.java:486)
at com.sun.tools.javac.code.TypeAnnotations.annotationTargetType(jdk.compiler@9-ea/TypeAnnotations.java:179)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.separateAnnotationsKinds(jdk.compiler@9-ea/TypeAnnotations.java:301)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(jdk.compiler@9-ea/TypeAnnotations.java:1141)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(jdk.compiler@9-ea/JCTree.java:852)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:57)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(jdk.compiler@9-ea/TypeAnnotations.java:1118)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(jdk.compiler@9-ea/JCTree.java:760)
at com.sun.tools.javac.code.TypeAnnotations.targetToAnnotationType(jdk.compiler@9-ea/TypeAnnotations.java:241)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.code.TypeAnnotations.lambda$organizeTypeAnnotationsSignatures$0(jdk.compiler@9-ea/TypeAnnotations.java:122)
at com.sun.tools.javac.comp.Annotate.flush(jdk.compiler@9-ea/Annotate.java:180)
at com.sun.tools.javac.comp.Annotate.unblockAnnotations(jdk.compiler@9-ea/Annotate.java:131)
at com.sun.tools.javac.comp.Enter.complete(jdk.compiler@9-ea/Enter.java:559)
at com.sun.tools.javac.comp.Enter.main(jdk.compiler@9-ea/Enter.java:526)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(jdk.compiler@9-ea/JavaCompiler.java:1041)
at com.sun.tools.javac.main.JavaCompiler.compile(jdk.compiler@9-ea/JavaCompiler.java:912)
at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:292)
at com.sun.tools.sjavac.comp.SjavacImpl.compile(jdk.compiler@9-ea/SjavacImpl.java:117)
at com.sun.tools.sjavac.comp.PooledSjavac.lambda$compile$0(jdk.compiler@9-ea/PooledSjavac.java:63)
at java.util.concurrent.FutureTask.run(java.base@9-ea/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
at com.sun.tools.javac.code.TypeAnnotations.lambda$annotationTargetType$3(jdk.compiler@9-ea/TypeAnnotations.java:178)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
at java.util.stream.ReferencePipeline$3$1.accept(java.base@9-ea/ReferencePipeline.java:195)
at java.util.Iterator.forEachRemaining(java.base@9-ea/Iterator.java:120)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(java.base@9-ea/Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea/AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea/AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea/ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea/AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.reduce(java.base@9-ea/ReferencePipeline.java:486)
at com.sun.tools.javac.code.TypeAnnotations.annotationTargetType(jdk.compiler@9-ea/TypeAnnotations.java:179)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.separateAnnotationsKinds(jdk.compiler@9-ea/TypeAnnotations.java:301)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(jdk.compiler@9-ea/TypeAnnotations.java:1141)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(jdk.compiler@9-ea/JCTree.java:852)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:57)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(jdk.compiler@9-ea/TypeAnnotations.java:1118)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(jdk.compiler@9-ea/JCTree.java:760)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.code.TypeAnnotations.lambda$organizeTypeAnnotationsSignatures$0(jdk.compiler@9-ea/TypeAnnotations.java:122)
at com.sun.tools.javac.comp.Annotate.flush(jdk.compiler@9-ea/Annotate.java:180)
at com.sun.tools.javac.comp.Annotate.unblockAnnotations(jdk.compiler@9-ea/Annotate.java:131)
at com.sun.tools.javac.comp.Enter.complete(jdk.compiler@9-ea/Enter.java:559)
at com.sun.tools.javac.comp.Enter.main(jdk.compiler@9-ea/Enter.java:526)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(jdk.compiler@9-ea/JavaCompiler.java:1041)
at com.sun.tools.javac.main.JavaCompiler.compile(jdk.compiler@9-ea/JavaCompiler.java:912)
at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:292)
at com.sun.tools.sjavac.comp.SjavacImpl.compile(jdk.compiler@9-ea/SjavacImpl.java:117)
at com.sun.tools.sjavac.comp.PooledSjavac.lambda$compile$0(jdk.compiler@9-ea/PooledSjavac.java:63)
at java.util.concurrent.FutureTask.run(java.base@9-ea/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. hg clone http://hg.openjdk.java.net/jdk9/jdk9 jdk9
2. cd jdk9
3. bash ./get_source.sh
4. bash ./configure
5. make all
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
javac does not fail with an internal error
ACTUAL -
java fails with a bug report request
ERROR MESSAGES/STACK TRACES THAT OCCUR :
[jdk9 510]$ cat ./build/macosx-x86_64-normal-server-release/make-support/failure-logs/support_jrtfs_classes__the.BUILD_JRTFS_batch.log
An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationTargetType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
at com.sun.tools.javac.util.Assert.error(jdk.compiler@9-ea/Assert.java:162)
at com.sun.tools.javac.code.TypeAnnotations.targetToAnnotationType(jdk.compiler@9-ea/TypeAnnotations.java:241)
at com.sun.tools.javac.code.TypeAnnotations.lambda$annotationTargetType$3(jdk.compiler@9-ea/TypeAnnotations.java:178)
at java.util.stream.ReferencePipeline$3$1.accept(java.base@9-ea/ReferencePipeline.java:195)
at java.util.Iterator.forEachRemaining(java.base@9-ea/Iterator.java:120)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(java.base@9-ea/Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea/AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea/AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea/ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea/AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.reduce(java.base@9-ea/ReferencePipeline.java:486)
at com.sun.tools.javac.code.TypeAnnotations.annotationTargetType(jdk.compiler@9-ea/TypeAnnotations.java:179)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.separateAnnotationsKinds(jdk.compiler@9-ea/TypeAnnotations.java:301)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(jdk.compiler@9-ea/TypeAnnotations.java:1141)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(jdk.compiler@9-ea/JCTree.java:852)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:57)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(jdk.compiler@9-ea/TypeAnnotations.java:1118)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(jdk.compiler@9-ea/JCTree.java:760)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.code.TypeAnnotations.lambda$organizeTypeAnnotationsSignatures$0(jdk.compiler@9-ea/TypeAnnotations.java:122)
at com.sun.tools.javac.comp.Annotate.flush(jdk.compiler@9-ea/Annotate.java:180)
at com.sun.tools.javac.comp.Annotate.unblockAnnotations(jdk.compiler@9-ea/Annotate.java:131)
at com.sun.tools.javac.comp.Enter.complete(jdk.compiler@9-ea/Enter.java:559)
at com.sun.tools.javac.comp.Enter.main(jdk.compiler@9-ea/Enter.java:526)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(jdk.compiler@9-ea/JavaCompiler.java:1041)
at com.sun.tools.javac.main.JavaCompiler.compile(jdk.compiler@9-ea/JavaCompiler.java:912)
at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:292)
at com.sun.tools.sjavac.comp.SjavacImpl.compile(jdk.compiler@9-ea/SjavacImpl.java:117)
at com.sun.tools.sjavac.comp.PooledSjavac.lambda$compile$0(jdk.compiler@9-ea/PooledSjavac.java:63)
at java.util.concurrent.FutureTask.run(java.base@9-ea/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
[jdk9 511]$
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
None yet
[jdk9 562]$ /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+135-jigsaw-nightly-h5480-20160909)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+135-jigsaw-nightly-h5480-20160909, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
[jdk9 561]$ uname -a
Darwin Scotts-iMac.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
El Capitan, version 10.11.6
EXTRA RELEVANT SYSTEM CONFIGURATION :
[jdk9 560]$ bash ./configure -n
Running generated-configure.sh
configure: Configuration created at Wed Sep 14 15:35:36 PDT 2016.
configure: configure script generated at timestamp 1472718471.
checking for basename... /usr/bin/basename
checking for bash... /bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for gunzip... /usr/bin/gunzip
checking for pigz... no
checking for gzip... /usr/bin/gzip
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /usr/bin/mktemp
checking for mv... /bin/mv
checking for nawk... no
checking for gawk... /usr/local/bin/gawk
checking for printf... /usr/bin/printf
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for gtar... no
checking for tar... /usr/bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /usr/bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for cygpath... no
checking for greadlink... no
checking for readlink... /usr/bin/readlink
checking for df... /bin/df
checking for cpio... /usr/bin/cpio
checking for nice... /usr/bin/nice
checking build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking target system type... x86_64-apple-darwin15.6.0
checking openjdk-build os-cpu... macosx-x86_64
checking openjdk-target os-cpu... macosx-x86_64
checking compilation type... native
checking for top-level directory... /Volumes/ScottBackup/Java9/jdk9
checking if custom source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which debug level to use... release
checking which variants of the JVM to build... server
checking for xcodebuild... /usr/bin/xcodebuild
checking for sdk name...
checking for sysroot...
checking for toolchain path...
checking for extra path...
checking where to store configuration... in default location
checking what configuration name to use... macosx-x86_64-normal-server-release
checking for apt-get... no
checking for yum... no
checking for port... no
checking for pkgutil... pkgutil
checking for gmake... no
checking for make... /usr/bin/make
configure: Testing potential make at /usr/bin/make, found using make in PATH
configure: Using GNU make at /usr/bin/make (version: GNU Make 3.81)
checking if make --output-sync is supported... no
checking if find supports -delete... yes
tar: Must specify one of -c, -r, -t, -u, -x
checking what type of tar was found...
checking for unzip... /usr/bin/unzip
checking for zip... /usr/bin/zip
checking for ldd... no
checking for otool... /usr/bin/otool
checking for greadelf... /usr/local/bin/greadelf
checking for hg... /usr/local/bin/hg
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking for dtrace... /usr/sbin/dtrace
checking for gpatch... no
checking for patch... /usr/bin/patch
checking for dsymutil... /usr/bin/dsymutil
checking for xattr... /usr/bin/xattr
checking for codesign... /usr/bin/codesign
checking if openjdk_codesign certificate is present... no
checking for SetFile... /usr/bin/SetFile
checking if bash supports pipefail... yes
checking if bash supports errexit (-e)... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking headful support... include support for both headful and headless
yes (default)
checking for version string... 9-internal+0-2016-09-14-153537.starksm.jdk9
configure: Found potential Boot JDK using /usr/libexec/java_home
checking for Boot JDK... /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
checking Boot JDK version... java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+135-jigsaw-nightly-h5480-20160909) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+135-jigsaw-nightly-h5480-20160909, mixed mode)
checking for java in Boot JDK... ok
checking for javac in Boot JDK... ok
checking for javah in Boot JDK... ok
checking for jar in Boot JDK... ok
checking for jarsigner in Boot JDK... ok
checking if Boot JDK supports modules... yes
checking if Boot JDK is 32 or 64 bits... 64
checking for Build JDK... yes, will use output dir
configure: Xcode major version: 7
configure: Using default toolchain clang (clang/LLVM)
checking for clang... /usr/bin/clang
checking resolved symbolic links for CC... no symlink
configure: Using clang C compiler version 7.3.0 [Apple LLVM version 7.3.0 (clang-703.0.31) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin]
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking for clang++... /usr/bin/clang++
checking resolved symbolic links for CXX... no symlink
configure: Using clang C++ compiler version 7.3.0 [Apple LLVM version 7.3.0 (clang-703.0.31) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin]
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/clang++ accepts -g... yes
checking how to run the C preprocessor... /usr/bin/clang -E
checking how to run the C++ preprocessor... /usr/bin/clang++ -E
checking for ar... ar
configure: Rewriting AR to "/usr/bin/ar"
checking for lipo... /usr/bin/lipo
checking for strip... strip
configure: Rewriting STRIP to "/usr/bin/strip"
checking for nm... nm
configure: Rewriting NM to "/usr/bin/nm"
checking for gobjdump... gobjdump
configure: Rewriting OBJDUMP to "/usr/local/bin/gobjdump"
checking for jtreg... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking size of int *... 8
checking for target address size... 64 bits
checking whether byte ordering is bigendian... no
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if the C compiler supports "-m64"... yes
checking if the C++ compiler supports "-m64"... yes
checking if both compilers support "-m64"... yes
checking if native warnings are errors... yes (default)
checking what type of native debug symbols to use... zipped
checking for dtrace tool... /usr/sbin/dtrace
checking sys/sdt.h usability... yes
checking sys/sdt.h presence... yes
checking for sys/sdt.h... yes
checking if dtrace should be built... yes, dependencies present
checking if Hotspot gtest unit tests should be built... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking for FREETYPE... yes
checking for freetype... yes (using pkg-config)
checking if we can compile and link with freetype... yes
checking if we should bundle freetype... no
checking for which libjpeg to use... bundled
checking for which giflib to use... bundled
checking for which libpng to use... bundled
checking for compress in -lz... yes
checking for which zlib to use... system
checking for which lcms to use... bundled
checking for cos in -lm... yes
checking for dlopen in -ldl... yes
checking if elliptic curve crypto implementation is present... yes
checking if jtreg failure handler should be built... no, missing jtreg
checking if the CDS classlist generation should be enabled... yes
checking for number of cores... 4
checking for memory size... 32768 MB
checking for appropriate number of jobs to run in parallel... 4
checking flags for boot jdk java command ... -Duser.language=en -Duser.country=US
checking flags for boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for bootcycle boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for boot jdk java command for small workloads... -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
checking whether to use sjavac... no
checking whether to use javac server... yes
checking If precompiled header is enabled... yes
checking is ccache enabled... no
checking if build directory is on local disk... yes
checking JVM features for JVM variant 'server'... all-gcs cds compiler1 compiler2 dtrace fprof jni-check jvmci jvmti management nmt services vm-structs
configure: creating /Volumes/ScottBackup/Java9/jdk9/build/macosx-x86_64-normal-server-release/configure-support/config.status
====================================================
The existing configuration has been successfully checked in
/Volumes/ScottBackup/Java9/jdk9/build/macosx-x86_64-normal-server-release
using configure arguments ''-n''.
Configuration summary:
* Debug level: release
* HS debug level: product
* JDK variant: normal
* JVM variants: server
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
* Version string: 9-internal+0-2016-09-14-153537.starksm.jdk9 (9-internal)
Tools summary:
* Boot JDK: java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+135-jigsaw-nightly-h5480-20160909) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+135-jigsaw-nightly-h5480-20160909, mixed mode) (at /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home)
* Toolchain: clang (clang/LLVM from Xcode 7.3.1)
* C Compiler: Version 7.3.0 (at /usr/bin/clang)
* C++ Compiler: Version 7.3.0 (at /usr/bin/clang++)
Build performance summary:
* Cores to use: 4
* Memory limit: 32768 MB
A DESCRIPTION OF THE PROBLEM :
While running make all on the current http://hg.openjdk.java.net/jdk9/jdk9 source repository, the compile fails with the following assertion:
[jdk9 558]$ make all
Building target 'all' in configuration 'macosx-x86_64-normal-server-release'
Building JVM variant 'server' with features 'all-gcs cds compiler1 compiler2 dtrace fprof jni-check jvmci jvmti management nmt services vm-structs'
Compiling 155 files for BUILD_TOOLS_JDK
Compiling 198 files for BUILD_INTERIM_RMIC
Compiling 31 files for BUILD_JRTFS
An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationTargetType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationTargetType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
at com.sun.tools.javac.util.Assert.error(jdk.compiler@9-ea/Assert.java:162)
at com.sun.tools.javac.code.TypeAnnotations.targetToAnnotationType(jdk.compiler@9-ea/TypeAnnotations.java:241)
at com.sun.tools.javac.code.TypeAnnotations.lambda$annotationTargetType$3(jdk.compiler@9-ea/TypeAnnotations.java:178)
at java.util.stream.ReferencePipeline$3$1.accept(java.base@9-ea/ReferencePipeline.java:195)
at java.util.Iterator.forEachRemaining(java.base@9-ea/Iterator.java:120)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(java.base@9-ea/Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea/AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea/AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea/ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea/AbstractPipeline.java:234)
at com.sun.tools.javac.util.Assert.error(jdk.compiler@9-ea/Assert.java:162)
at java.util.stream.ReferencePipeline.reduce(java.base@9-ea/ReferencePipeline.java:486)
at com.sun.tools.javac.code.TypeAnnotations.annotationTargetType(jdk.compiler@9-ea/TypeAnnotations.java:179)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.separateAnnotationsKinds(jdk.compiler@9-ea/TypeAnnotations.java:301)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(jdk.compiler@9-ea/TypeAnnotations.java:1141)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(jdk.compiler@9-ea/JCTree.java:852)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:57)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(jdk.compiler@9-ea/TypeAnnotations.java:1118)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(jdk.compiler@9-ea/JCTree.java:760)
at com.sun.tools.javac.code.TypeAnnotations.targetToAnnotationType(jdk.compiler@9-ea/TypeAnnotations.java:241)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.code.TypeAnnotations.lambda$organizeTypeAnnotationsSignatures$0(jdk.compiler@9-ea/TypeAnnotations.java:122)
at com.sun.tools.javac.comp.Annotate.flush(jdk.compiler@9-ea/Annotate.java:180)
at com.sun.tools.javac.comp.Annotate.unblockAnnotations(jdk.compiler@9-ea/Annotate.java:131)
at com.sun.tools.javac.comp.Enter.complete(jdk.compiler@9-ea/Enter.java:559)
at com.sun.tools.javac.comp.Enter.main(jdk.compiler@9-ea/Enter.java:526)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(jdk.compiler@9-ea/JavaCompiler.java:1041)
at com.sun.tools.javac.main.JavaCompiler.compile(jdk.compiler@9-ea/JavaCompiler.java:912)
at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:292)
at com.sun.tools.sjavac.comp.SjavacImpl.compile(jdk.compiler@9-ea/SjavacImpl.java:117)
at com.sun.tools.sjavac.comp.PooledSjavac.lambda$compile$0(jdk.compiler@9-ea/PooledSjavac.java:63)
at java.util.concurrent.FutureTask.run(java.base@9-ea/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
at com.sun.tools.javac.code.TypeAnnotations.lambda$annotationTargetType$3(jdk.compiler@9-ea/TypeAnnotations.java:178)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
at java.util.stream.ReferencePipeline$3$1.accept(java.base@9-ea/ReferencePipeline.java:195)
at java.util.Iterator.forEachRemaining(java.base@9-ea/Iterator.java:120)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(java.base@9-ea/Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea/AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea/AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea/ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea/AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.reduce(java.base@9-ea/ReferencePipeline.java:486)
at com.sun.tools.javac.code.TypeAnnotations.annotationTargetType(jdk.compiler@9-ea/TypeAnnotations.java:179)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.separateAnnotationsKinds(jdk.compiler@9-ea/TypeAnnotations.java:301)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(jdk.compiler@9-ea/TypeAnnotations.java:1141)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(jdk.compiler@9-ea/JCTree.java:852)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:57)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(jdk.compiler@9-ea/TypeAnnotations.java:1118)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(jdk.compiler@9-ea/JCTree.java:760)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.code.TypeAnnotations.lambda$organizeTypeAnnotationsSignatures$0(jdk.compiler@9-ea/TypeAnnotations.java:122)
at com.sun.tools.javac.comp.Annotate.flush(jdk.compiler@9-ea/Annotate.java:180)
at com.sun.tools.javac.comp.Annotate.unblockAnnotations(jdk.compiler@9-ea/Annotate.java:131)
at com.sun.tools.javac.comp.Enter.complete(jdk.compiler@9-ea/Enter.java:559)
at com.sun.tools.javac.comp.Enter.main(jdk.compiler@9-ea/Enter.java:526)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(jdk.compiler@9-ea/JavaCompiler.java:1041)
at com.sun.tools.javac.main.JavaCompiler.compile(jdk.compiler@9-ea/JavaCompiler.java:912)
at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:292)
at com.sun.tools.sjavac.comp.SjavacImpl.compile(jdk.compiler@9-ea/SjavacImpl.java:117)
at com.sun.tools.sjavac.comp.PooledSjavac.lambda$compile$0(jdk.compiler@9-ea/PooledSjavac.java:63)
at java.util.concurrent.FutureTask.run(java.base@9-ea/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. hg clone http://hg.openjdk.java.net/jdk9/jdk9 jdk9
2. cd jdk9
3. bash ./get_source.sh
4. bash ./configure
5. make all
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
javac does not fail with an internal error
ACTUAL -
java fails with a bug report request
ERROR MESSAGES/STACK TRACES THAT OCCUR :
[jdk9 510]$ cat ./build/macosx-x86_64-normal-server-release/make-support/failure-logs/support_jrtfs_classes__the.BUILD_JRTFS_batch.log
An exception has occurred in the compiler (9-internal). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationTargetType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
at com.sun.tools.javac.util.Assert.error(jdk.compiler@9-ea/Assert.java:162)
at com.sun.tools.javac.code.TypeAnnotations.targetToAnnotationType(jdk.compiler@9-ea/TypeAnnotations.java:241)
at com.sun.tools.javac.code.TypeAnnotations.lambda$annotationTargetType$3(jdk.compiler@9-ea/TypeAnnotations.java:178)
at java.util.stream.ReferencePipeline$3$1.accept(java.base@9-ea/ReferencePipeline.java:195)
at java.util.Iterator.forEachRemaining(java.base@9-ea/Iterator.java:120)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(java.base@9-ea/Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(java.base@9-ea/AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-ea/AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@9-ea/ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate(java.base@9-ea/AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.reduce(java.base@9-ea/ReferencePipeline.java:486)
at com.sun.tools.javac.code.TypeAnnotations.annotationTargetType(jdk.compiler@9-ea/TypeAnnotations.java:179)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.separateAnnotationsKinds(jdk.compiler@9-ea/TypeAnnotations.java:301)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(jdk.compiler@9-ea/TypeAnnotations.java:1141)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(jdk.compiler@9-ea/JCTree.java:852)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:57)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(jdk.compiler@9-ea/TypeAnnotations.java:1118)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(jdk.compiler@9-ea/JCTree.java:760)
at com.sun.tools.javac.tree.TreeScanner.scan(jdk.compiler@9-ea/TreeScanner.java:49)
at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(jdk.compiler@9-ea/TypeAnnotations.java:279)
at com.sun.tools.javac.code.TypeAnnotations.lambda$organizeTypeAnnotationsSignatures$0(jdk.compiler@9-ea/TypeAnnotations.java:122)
at com.sun.tools.javac.comp.Annotate.flush(jdk.compiler@9-ea/Annotate.java:180)
at com.sun.tools.javac.comp.Annotate.unblockAnnotations(jdk.compiler@9-ea/Annotate.java:131)
at com.sun.tools.javac.comp.Enter.complete(jdk.compiler@9-ea/Enter.java:559)
at com.sun.tools.javac.comp.Enter.main(jdk.compiler@9-ea/Enter.java:526)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(jdk.compiler@9-ea/JavaCompiler.java:1041)
at com.sun.tools.javac.main.JavaCompiler.compile(jdk.compiler@9-ea/JavaCompiler.java:912)
at com.sun.tools.javac.main.Main.compile(jdk.compiler@9-ea/Main.java:292)
at com.sun.tools.sjavac.comp.SjavacImpl.compile(jdk.compiler@9-ea/SjavacImpl.java:117)
at com.sun.tools.sjavac.comp.PooledSjavac.lambda$compile$0(jdk.compiler@9-ea/PooledSjavac.java:63)
at java.util.concurrent.FutureTask.run(java.base@9-ea/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
[jdk9 511]$
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
None yet