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

[TESTBUG] runtime/CommandLine/VMDeprecatedOptions.java fails with JDK10 release bits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Resolved In Build:
      b31
    • CPU:
      generic
    • OS:
      generic

      Description

      The following test failure popped up in my baseline testing
      of JDK10 bits for the SMR_prototype:

      runtime/CommandLine/VMDeprecatedOptions.java

      Here is a snippet of the .jtr file:

      ----------System.err:(28/1769)----------
       stdout: [];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: Option MaxGCMinorPauseMillis was deprecated in version 8.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option MustCallLoadClassInternal was deprecated in version 10.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option UnsyncloadClass was deprecated in version 10.0 and will likely be removed in a future release.
      Error: VM option 'UnsyncloadClass' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
      Error: The unlock option must precede 'UnsyncloadClass'.
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0]

              at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:380)
              at VMDeprecatedOptions.testDeprecated(VMDeprecatedOptions.java:71)
              at VMDeprecatedOptions.main(VMDeprecatedOptions.java:79)
              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:564)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
              at java.base/java.lang.Thread.run(Thread.java:844)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hseigel Harold Seigel
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: