Multiple ClassLoader for the same class

Juan Fumero juan.fumero at ed.ac.uk
Wed Apr 27 17:16:50 UTC 2016


Hi all, 
   I am trying to work with the StructuredGraph in the Truffle level. 

But I get the following error: 

java.io.IOException: com.oracle.truffle.r.runtime.RInternalError:
java.lang.ClassCastException: com.oracle.graal.nodes.StructuredGraph
cannot be cast to com.oracle.graal.nodes.StructuredGraph

If I trace the Class Loading and unloading I get the following: 

[Loaded com.oracle.graal.nodes.StructuredGraph from
file:/home/juan/phd/astx-
compiler/jvmci/jdk1.8.0_91/product/jre/lib/jvmci/graal-compiler.jar]
And later on 

[Loaded com.oracle.graal.nodes.StructuredGraph from
file:/home/juan/phd/astx-compiler/graal/mxbuild/dists/graal-
compiler.jar]

And then I get the error. Any idea? Any work around? Customize Class
loading?  


Thanks
Juan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://mail.openjdk.java.net/pipermail/graal-dev/attachments/20160427/e22d5efd/attachment.ksh>


More information about the graal-dev mailing list