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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Remi Forax
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" <[hidden email]>
À: [hidden email]
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.
Loading...