Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTests21.testGH1964_since_22 - 21 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 2 builds (Since #941 )
Took 0.21 sec.

Error Message

Unexpected error running resulting class file for JDK21TestingMain.java: --[START]-- Error: LinkageError occurred while loading main class JDK21TestingMain  java.lang.UnsupportedClassVersionError: JDK21TestingMain has been compiled by a more recent version of the Java Runtime (class file version 66.65535), this version of the Java Runtime only recognizes class file versions up to 65.0 ---[END]--- . ----------- Expected ------------  ------------ but was ------------ Error: LinkageError occurred while loading main class JDK21TestingMain\n  java.lang.UnsupportedClassVersionError: JDK21TestingMain has been compiled by a more recent version of the Java Runtime (class file version 66.65535), this version of the Java Runtime only recognizes class file versions up to 65.0\n  ---------------------- ----------  expected:<[]> but was:<[Error: LinkageError occurred while loading main class JDK21TestingMain\n  java.lang.UnsupportedClassVersionError: JDK21TestingMain has been compiled by a more recent version of the Java Runtime (class file version 66.65535), this version of the Java Runtime only recognizes class file versions up to 65.0\n ]>

Stacktrace

junit.framework.ComparisonFailure: Unexpected error running resulting class file for JDK21TestingMain.java:
--[START]--
Error: LinkageError occurred while loading main class JDK21TestingMain
	java.lang.UnsupportedClassVersionError: JDK21TestingMain has been compiled by a more recent version of the Java Runtime (class file version 66.65535), this version of the Java Runtime only recognizes class file versions up to 65.0
---[END]---
.
----------- Expected ------------

------------ but was ------------
Error: LinkageError occurred while loading main class JDK21TestingMain\n
	java.lang.UnsupportedClassVersionError: JDK21TestingMain has been compiled by a more recent version of the Java Runtime (class file version 66.65535), this version of the Java Runtime only recognizes class file versions up to 65.0\n

---------------------- ----------
 expected:<[]> but was:<[Error: LinkageError occurred while loading main class JDK21TestingMain\n
	java.lang.UnsupportedClassVersionError: JDK21TestingMain has been compiled by a more recent version of the Java Runtime (class file version 66.65535), this version of the Java Runtime only recognizes class file versions up to 65.0\n
]>
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:267)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:242)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:3646)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:3386)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest$Runner.runConformTest(AbstractRegressionTest.java:148)
	at org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTests21.testGH1964_since_22(NullAnnotationTests21.java:1039)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at junit.framework.TestCase.runTest(TestCase.java:177)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:972)
	at junit.framework.TestCase.runBare(TestCase.java:142)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)
	at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:59)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)