-
Bug
-
Resolution: Fixed
-
P3
-
22, 23
-
b07
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8326335 | 22.0.1 | Erik Joelsson | P3 | Resolved | Fixed | b06 |
JDK-8323679 | 22 | Magnus Ihse Bursie | P3 | Closed | Won't Fix |
In JDK-8318913, the symbolgenerator started to look at current sources as well. This means that the gensrc stage needs to be completed before this is run. A dependency was added for jdk.compiler-gendata, but unfortunately the same tool is run also in jdk.javadoc-gendata, where no such safeguard was created.
The result is that the build can fail intermittently with:
.../module-info.java:77: error: module not found on module source path
module java.base {
^
error: cannot access module-info
cannot resolve modules
Exception in thread "main" java.lang.AssertionError
at jdk.compiler.interim/com.sun.tools.javac.util.Assert.error(Assert.java:155)
at jdk.compiler.interim/com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62)
at jdk.compiler.interim/com.sun.tools.javac.comp.Modules.allModules(Modules.java:1225)
at jdk.compiler.interim/com.sun.tools.javac.comp.Modules.getObservableModule(Modules.java:1450)
at jdk.compiler.interim/com.sun.tools.javac.model.JavacElements.getModuleElement(JavacElements.java:144)
at jdk.compiler.interim/com.sun.tools.javac.model.JavacElements.getModuleElement(JavacElements.java:89)
at build.tools.symbolgenerator.JavadocElementList.main(JavadocElementList.java:98)
Compiling up to 2 files for BUILD_BREAKITERATOR_BASE
Compiling up to 2 files for BUILD_BREAKITERATOR_LD
make[3]: *** [.../_element_lists.marker] Error 1
Gendata.gmk:74: recipe for target '.../_element_lists.marker' failed
The result is that the build can fail intermittently with:
.../module-info.java:77: error: module not found on module source path
module java.base {
^
error: cannot access module-info
cannot resolve modules
Exception in thread "main" java.lang.AssertionError
at jdk.compiler.interim/com.sun.tools.javac.util.Assert.error(Assert.java:155)
at jdk.compiler.interim/com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62)
at jdk.compiler.interim/com.sun.tools.javac.comp.Modules.allModules(Modules.java:1225)
at jdk.compiler.interim/com.sun.tools.javac.comp.Modules.getObservableModule(Modules.java:1450)
at jdk.compiler.interim/com.sun.tools.javac.model.JavacElements.getModuleElement(JavacElements.java:144)
at jdk.compiler.interim/com.sun.tools.javac.model.JavacElements.getModuleElement(JavacElements.java:89)
at build.tools.symbolgenerator.JavadocElementList.main(JavadocElementList.java:98)
Compiling up to 2 files for BUILD_BREAKITERATOR_BASE
Compiling up to 2 files for BUILD_BREAKITERATOR_LD
make[3]: *** [.../_element_lists.marker] Error 1
Gendata.gmk:74: recipe for target '.../_element_lists.marker' failed
- backported by
-
JDK-8326335 Race in jdk.javadoc-gendata
- Resolved
-
JDK-8323679 Race in jdk.javadoc-gendata
- Closed
- relates to
-
JDK-8318913 The module-infos for --release data do not contain pre-set versions
- Resolved
- links to
-
Commit openjdk/jdk22u/b56bba8b
-
Commit openjdk/jdk/9049402a
-
Review openjdk/jdk22/96
-
Review openjdk/jdk22u/53
-
Review openjdk/jdk/17402
(3 links to)