Reading bootstrap class bytecode from Java 7

Alan Bateman Alan.Bateman at oracle.com
Mon Dec 5 07:42:16 UTC 2016


On 05/12/2016 07:21, Remi Forax wrote:

> Hi,
> Object.class.getClassLoader().getResourceAsStream(Object.class.getName().replace('.', '/') + ".class")
> should work across all jdks.
>
This should work as before (ignoring the issue that 
Object.class.getClassLoader() will return null :-))

However, as I read it, the original question involves a tool running on 
JDK 7 trying to access the .class files in a JDK 9 image. There isn't 
any supported way to do that, the tool needs to be on a minimum of JDK 8 
as the jrtfs provider is compiled to 8.

-Alan


More information about the jigsaw-dev mailing list