RFR: JDK-8072904: building jdk9 with jdk9 boot jdk can cause failure or incorrect results

David Holmes david.holmes at oracle.com
Wed Feb 11 09:53:37 UTC 2015

Hi Erik,

On 11/02/2015 7:23 PM, Erik Joelsson wrote:
> Hello,
> Please review this change to how javah is run on sa classes. Since the
> sa classes in JDK 9 are now in a module instead of sa-jdi.jar, they are
> (at least currently) available from the default bootclasspath. This
> means that just setting -classpath to javah will not properly override
> the versions of the classes found in the boot jdk with the versions
> currently being built. The fix is to change -classpath with
> -Xbootclasspath/p:.

Seems like a temporary workaround. javah should have a way to indicate 
which class to process without assuming it comes from the JVM used to 
run javah. Also putting what was sa-jdi.jar on the bootclasspath seems 
somewhat misplaced - these aren't "boot" classes.

> Bug: https://bugs.openjdk.java.net/browse/JDK-8072904
> Webrev: http://cr.openjdk.java.net/~erikj/8072904/webrev.hotspot.01/

Were are the changes for all the other (non-linux) platforms? :)


> Planning to push this through jdk9/hs-rt.
> /Erik

More information about the build-dev mailing list