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

jpackage causes failures in existing HelpFlagsTest and VersionCheck tests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      Description

      The existence of jpackage and papplauncher is causing test failures in two of the existing jdk/tools tests on all platforms:

      jdk/tools/HelpFlagsTest.java
      jdk/tools/VersionCheck.java

      The failures are as follows:

      1. HelpFlagsTest

      ----------System.err:(15/865)----------
      java.lang.AssertionError: HelpFlagsTest failed:
      Tool jpackage not covered by this test. Add specification to jdkTools array!
      Tool papplauncher not covered by this test. Add specification to jdkTools array!

      at HelpFlagsTest.main(HelpFlagsTest.java:412)
      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:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)

      JavaTest Message: Test threw exception: java.lang.AssertionError
      JavaTest Message: shutting down test


      2. VersionCheck
      ----------System.err:(12/784)----------
      java.lang.AssertionError: VersionCheck failed: testJVersionStrings: [papplauncher]; testToolVersion: [papplauncher, jpackage];
      at VersionCheck.main(VersionCheck.java:281)
      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:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)

      JavaTest Message: Test threw exception: java.lang.AssertionError
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: VersionCheck failed: testJVersionStrings: [papplauncher]; testToolVersion: [papplauncher, jpackage];

        Attachments

          Activity

            People

            • Assignee:
              herrick Andy Herrick
              Reporter:
              kcr Kevin Rushforth
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: