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

tools/javac/annotations/typeAnnotations/classfile/AnonymousExtendsTest.java fails with AssertionError

XMLWordPrintable

    • b10
    • generic
    • generic
    • Verified

      The following test failed in the JDK19 CI:

      tools/javac/annotations/typeAnnotations/classfile/AnonymousExtendsTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/152)----------
      command: main AnonymousExtendsTest
      reason: User specified action: run main AnonymousExtendsTest
      Mode: agentvm
      Agent id: 9
      elapsed time (seconds): 0.07
      ----------configuration:(14/1689)----------
      Boot Layer
        class path: /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar
                    /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar
        patch: java.base /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S23039/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/12145499-bb9e-4656-907b-7ca94ddd4441/runs/fb1fa7eb-b3d6-47b1-abb2-1e6ae736e8f1/testoutput/test-support/jtreg_open_test_langtools_tier1/patches/java.base

      Test Layer
        class path: /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S23039/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/12145499-bb9e-4656-907b-7ca94ddd4441/runs/fb1fa7eb-b3d6-47b1-abb2-1e6ae736e8f1/testoutput/test-support/jtreg_open_test_langtools_tier1/classes/5/tools/javac/annotations/typeAnnotations/classfile/AnonymousExtendsTest.d
                    /opt/mach5/mesos/work_dir/jib-master/install/jdk-19+10-542/src.full/open/test/langtools/tools/javac/annotations/typeAnnotations/classfile

      ----------rerun:(28/4831)*----------

      <snip>

      ----------System.err:(12/726)----------
      java.lang.AssertionError: Unexpected annotations[@AnonymousExtendsTest.TA(1)],[@AnonymousExtendsTest.TA(2)]
      at AnonymousExtendsTest.checkAnnotations(AnonymousExtendsTest.java:71)
      at AnonymousExtendsTest.testIt(AnonymousExtendsTest.java:54)
      at AnonymousExtendsTest.main(AnonymousExtendsTest.java:75)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:828)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Unexpected annotations[@AnonymousExtendsTest.TA(1)],[@AnonymousExtendsTest.TA(2)]

            darcy Joe Darcy
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: