-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 9
-
Component/s: tools
-
b50
-
Not verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8085339 | emb-9 | Jan Lahoda | P3 | Resolved | Fixed | team |
To reproduce, checkout the langtools repository so that any of its parent directories ends with "com" (e.g. "/tmp/test.com"). Building langtools then fails with:
---
$ (cd make/; ant clean build-all-tools)
...
[javac] Compiling 294 source files to /tmp/test.com/langtools/build/bootstrap/jdk.compiler/classes
[javac] /tmp/test.com/langtools/build/bootstrap/jdk.compiler/gensrc/com/sun/tools/javac/resources/CompilerProperties.java:22: error: duplicate class: com.langtools.src.jdk.compiler.share.classes.com.sun.tools.javac.resources.CompilerProperties
[javac] public class CompilerProperties {
[javac] ^
[javac] /tmp/test.com/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/DeferredAttr.java:31: error: cannot access CompilerProperties
[javac] import com.sun.tools.javac.resources.CompilerProperties;
[javac] ^
[javac] bad source file: /tmp/test.com/langtools/build/bootstrap/jdk.compiler/gensrc/com/sun/tools/javac/resources/CompilerProperties.java
[javac] file does not contain class com.sun.tools.javac.resources.CompilerProperties
[javac] Please remove or make sure it appears in the correct subdirectory of the sourcepath.
[javac] /tmp/test.com/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java:55: error: cannot find symbol
[javac] import static com.sun.tools.javac.jvm.ClassFile.externalize;
[javac] ^
[javac] symbol: static externalize
[javac] location: class
---
---
$ (cd make/; ant clean build-all-tools)
...
[javac] Compiling 294 source files to /tmp/test.com/langtools/build/bootstrap/jdk.compiler/classes
[javac] /tmp/test.com/langtools/build/bootstrap/jdk.compiler/gensrc/com/sun/tools/javac/resources/CompilerProperties.java:22: error: duplicate class: com.langtools.src.jdk.compiler.share.classes.com.sun.tools.javac.resources.CompilerProperties
[javac] public class CompilerProperties {
[javac] ^
[javac] /tmp/test.com/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/DeferredAttr.java:31: error: cannot access CompilerProperties
[javac] import com.sun.tools.javac.resources.CompilerProperties;
[javac] ^
[javac] bad source file: /tmp/test.com/langtools/build/bootstrap/jdk.compiler/gensrc/com/sun/tools/javac/resources/CompilerProperties.java
[javac] file does not contain class com.sun.tools.javac.resources.CompilerProperties
[javac] Please remove or make sure it appears in the correct subdirectory of the sourcepath.
[javac] /tmp/test.com/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java:55: error: cannot find symbol
[javac] import static com.sun.tools.javac.jvm.ClassFile.externalize;
[javac] ^
[javac] symbol: static externalize
[javac] location: class
---
- backported by
-
JDK-8085339 Cannot build langtools if checked-out in a directory ending with "com"
-
- Resolved
-