Details
-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b153
-
Verified
Description
Currently if code is compiled against unexported package following error is reported
javac -d modules --module-path modules --module-source-path src src/m2/pkg2/B.java
src\m2\pkg2\B.java:1: error: package pkg1 does not exist
package pkg2; /** Klass B */ public class B { /** Field f */ public pkg1.A f; }
Can javac report something like "pkg1 is not exported by module m1"?
javac -d modules --module-path modules --module-source-path src src/m2/pkg2/B.java
src\m2\pkg2\B.java:1: error: package pkg1 does not exist
package pkg2; /** Klass B */ public class B { /** Field f */ public pkg1.A f; }
Can javac report something like "pkg1 is not exported by module m1"?
Attachments
Issue Links
- clones
-
JDK-8166538 Improve error reporting for compiling against unexported package
- Closed
- relates to
-
JDK-8169074 Build is failing after JDK-8166538
- Closed
-
JDK-8172809 Error compiling javafx modules after fix for JDK-8169197
- Closed
-
JDK-8173117 Compilation significantly slower after JDK-8169197
- Closed
-
JDK-8189765 Improve error reporting for compiling against package not visible due to modules
- Closed
-
JDK-8172668 NPE in jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.importNamed(
- Closed
(1 relates to)