building jdk9 with jdk9 boot jdk can cause failure or incorrect results

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9
    • Component/s: infrastructure
    • None
    • b54

        To build SA classes, we do something like:

        $(RUN.JAVAH) -classpath $(SA_CLASSDIR) -d $(GENERATED) -jni sun.jvm.hotspot.debugger.x86.X86ThreadContext

        And we are trying to get the class from $(SA_CLASSDIR), not the boot jdk. However, if the boot jdk is jdk9, then we do get the class from the boot jdk, which is incorrect.

        % $JDK8/bin/javah -d . -jni sun.jvm.hotspot.debugger.x86.X86ThreadContext && echo no error
        Error: Could not find class file for 'sun.jvm.hotspot.debugger.x86.X86ThreadContext'.

        % $JDK9/bin/javah -d . -jni sun.jvm.hotspot.debugger.x86.X86ThreadContext && echo no error
        no error

              Assignee:
              Erik Joelsson
              Reporter:
              Dean Long
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: