Re: Reading bootstrap class bytecode from Java 7

2016-12-06 Thread Peter Levart
Hi, On 12/05/2016 08:42 AM, Alan Bateman wrote: 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

Re: Reading bootstrap class bytecode from Java 7

2016-12-06 Thread Alan Bateman
On 06/12/2016 02:07, Ess Kay wrote: Are there any code snippets anywhere that demonstrate using Java 9's jrt-fs.jar from within Java 8 to access Java 9 java.lang.Object? Cannot find any using Google. Struggling to make this work. Here's a code fragment that reads the bytes for

Re: Reading bootstrap class bytecode from Java 7

2016-12-05 Thread Ess Kay
Are there any code snippets anywhere that demonstrate using Java 9's jrt-fs.jar from within Java 8 to access Java 9 java.lang.Object? Cannot find any using Google. Struggling to make this work. On Mon, Dec 5, 2016 at 6:42 PM, Alan Bateman wrote: > On 05/12/2016 07:21,

Re: Reading bootstrap class bytecode from Java 7

2016-12-04 Thread Alan Bateman
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

Re: Reading bootstrap class bytecode from Java 7

2016-12-04 Thread Remi Forax
aw-dev@openjdk.java.net > Envoyé: Lundi 5 Décembre 2016 05:16:18 > Objet: Re: Reading bootstrap class bytecode from Java 7 > Hi, > > http://openjdk.java.net/jeps/220 clearly states this: > > "For tools that support the development of code for JDK 9 but which > themsel

Re: Reading bootstrap class bytecode from Java 7

2016-12-04 Thread Sundararajan Athijegannathan
Hi, http://openjdk.java.net/jeps/220 clearly states this: "For tools that support the development of code for JDK 9 but which themselves run on JDK 8, a copy of this filesystem provider suitable for use on JDK 8 will be placed in the root directory of JDK 9 run-time images, in a file named

Reading bootstrap class bytecode from Java 7

2016-12-04 Thread Ess Kay
I am working on a utility currently running on Java 7 which will need to be able process Java 9 classes and read the Java 9 bootstrap class bytecode (e.g. java.lang.Object). Is there a stable, "official" way to read the Java 9 bytecode from Java 7 where there is no "jrt" provider? Also, is there