Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8072904

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • 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

              erikj Erik Joelsson
              dlong Dean Long
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: