Bug in Java 9 compiler
Zheka Kozlov
orionllmain at gmail.com
Wed Apr 4 11:12:36 UTC 2018
I think I found a javac bug which is reproduced on Java 9/10/11, but not on
Java 8.
I created a repository with a minimal, reproducible and verifiable example:
https://github.com/orionll/javac-bug
There are three Java files:
org/example/Common.java (empty file)
org/example/impl/Common.java
org/example/impl/Util.java
Util.java imports org.example.* and refers to a Common.X field. This is a
totally legitimate code, but javac fails with an error saying that
org/example/Common.java
does not contain a class org.example.Common (it doesn't have to).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20180404/dd963c6a/attachment.html>
More information about the compiler-dev
mailing list