Fwd: Package resolution when compiling jdk.aot against jdk.vm.ci

Remi Forax forax at univ-mlv.fr
Mon Feb 13 15:12:42 UTC 2017


Hi Jon,
this is from the graal-dev mailing list,
is there a way to improve the error message of javac when a class is not visible because the package is not exported ?

Rémi

----- Mail transféré -----
De: "Andrew Haley" <aph at redhat.com>
À: graal-dev at openjdk.java.net
Envoyé: Lundi 13 Février 2017 15:44:23
Objet: Re: Package resolution when compiling jdk.aot against jdk.vm.ci

Sorry, found it:

diff --git a/src/jdk.vm.ci/share/classes/module-info.java b/src/jdk.vm.ci/share/classes/module-info.java
--- a/src/jdk.vm.ci/share/classes/module-info.java
+++ b/src/jdk.vm.ci/share/classes/module-info.java
@@ -35,6 +35,7 @@
         jdk.vm.ci.hotspot.sparc.SPARCHotSpotJVMCIBackendFactory;

     exports jdk.vm.ci.aarch64 to
+        jdk.aot,
         jdk.vm.compiler;
     exports jdk.vm.ci.amd64 to
         jdk.aot,

One thought: it would be nice if javac were a bit more helpful: simply saying
"not found" is rather baffling.  "Not exported" would be super.

Andrew.


More information about the compiler-dev mailing list