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

(jdeprscan) tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java failed with "error: cannot access jdk.internal.ValueBased"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools
    • Resolved In Build:
      b31

      Backports

        Description

        The following test failed in the JDK17 CI:

        tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java

        Here's a snippet from the log file:

        test jdk.jdeprscan.TestRelease.testSuccess(): failure
        java.lang.AssertionError: expected [true] but found [false]
        at org.testng.Assert.fail(Assert.java:94)
        at org.testng.Assert.failNotEquals(Assert.java:496)
        at org.testng.Assert.assertTrue(Assert.java:42)
        at org.testng.Assert.assertTrue(Assert.java:52)
        at jdk.jdeprscan.TestRelease.testSuccess(TestRelease.java:56)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:773)
        at org.testng.TestRunner.run(TestRunner.java:623)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
        at org.testng.SuiteRunner.run(SuiteRunner.java:259)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
        at org.testng.TestNG.run(TestNG.java:1018)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        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:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

        ===============================================
        tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java
        Total tests run: 2, Failures: 1, Skips: 0
        ===============================================

        ----------System.err:(56/2683)----------
        >>> invoking Main.call with arguments: --list --release 5
        Usage: jdeprscan [options] {dir|jar|class} ...

        options:
                --class-path PATH
                --for-removal
                --full-version
          -? -h --help
          -l --list
                --release 7|8|9|10|11|12|13|14|15|16|17
          -v --verbose
                --version
        >>> Main.call returned false
        >>> invoking Main.call with arguments: --list --release 7
        warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL
        warning: unknown enum constant javax.annotation.Resource.AuthenticationType.CONTAINER
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 8
        warning: unknown enum constant javax.jws.soap.SOAPBinding.Use.LITERAL
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 9
        warning: unknown enum constant javax.annotation.Resource.AuthenticationType.CONTAINER
        warning: unknown enum constant javax.jws.WebParam.Mode.IN
        warning: unknown enum constant javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 10
        warning: unknown enum constant javax.jws.WebParam.Mode.IN
        warning: unknown enum constant javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED
        warning: unknown enum constant javax.annotation.Resource.AuthenticationType.CONTAINER
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 11
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 12
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 13
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 14
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 15
        >>> Main.call returned true
        >>> invoking Main.call with arguments: --list --release 16
        error: cannot access jdk.internal.ValueBased
          class file for jdk.internal.ValueBased not found
        >>> Main.call returned false
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        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:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

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

        result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1


        test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1

        I'm starting this bug as a P2 since this is a Tier1 failure.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jlahoda Jan Lahoda
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: