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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b54

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  erikj Erik Joelsson
                  Reporter:
                  dlong Dean Long
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: