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

sun/tools/jinfo/JInfoTest.java fails with OpenJDK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • core-svc

      sun/tools/jinfo/JInfoTest.java

      91: // "HotSpot(TM)" written once per proc
      92: documentMatch(output.getStdout(), ".*HotSpot\\(TM\\).*HotSpot\\(TM\\).*");

      Test hard code the vm version string "HotSpot(TM)" for matching, this fails test with OpenJDK.
      This more looks like testbug.

      OpenJDK version info:
      openjdk-9/bin/java -version
      openjdk version "9-ea"
      OpenJDK Runtime Environment (build 9-ea+160)
      OpenJDK 64-Bit Server VM (build 9-ea+160, mixed mode)

      And java.vm.name=OpenJDK 64-Bit Server VM

      Test fails with:
      ----------System.err:(15/835)*----------
      java.lang.RuntimeException: '.*HotSpot\\(TM\\).*HotSpot\\(TM\\).*' missing from stdout

      at JInfoTest.documentMatch(JInfoTest.java:102)
      at JInfoTest.classNameMatch(JInfoTest.java:92)
      at JInfoTest.main(JInfoTest.java:51)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:547)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)

            Unassigned Unassigned
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: