diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java index 4de1a26c99b..093c008d88f 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java @@ -250,16 +250,18 @@ public static TestSuite getTestSuite(boolean addComplianceDiagnoseTest) { all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.getComplianceLevelForJavaVersion(ClassFileConstants.MAJOR_VERSION_22), tests_22)); } if ((possibleComplianceLevels & AbstractCompilerTest.F_23) != 0) { - ArrayList tests_23 = (ArrayList)testClasses.clone(); - tests_23.addAll(TEST_CLASSES_1_5); - addJava16Tests(tests_23); - TestCase.TESTS_PREFIX = null; - TestCase.TESTS_NAMES = null; - TestCase.TESTS_NUMBERS= null; - TestCase.TESTS_RANGE = null; - TestCase.RUN_ONLY_ID = null; - all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.getComplianceLevelForJavaVersion(ClassFileConstants.MAJOR_VERSION_23), tests_23)); - } + ArrayList tests_23 = (ArrayList)testClasses.clone(); + tests_23.addAll(TEST_CLASSES_1_5); + addJava16Tests(tests_23); +// tests_22.add(SuperAfterStatementsTest.class); + // Reset forgotten subsets tests + TestCase.TESTS_PREFIX = null; + TestCase.TESTS_NAMES = null; + TestCase.TESTS_NUMBERS= null; + TestCase.TESTS_RANGE = null; + TestCase.RUN_ONLY_ID = null; + all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.getComplianceLevelForJavaVersion(ClassFileConstants.MAJOR_VERSION_23), tests_23)); + } return all; } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java index dd689d7eccb..831a2f74178 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java @@ -96,7 +96,7 @@ public class AbstractCompilerTest extends TestCase { new int[] {F_20, ClassFileConstants.MAJOR_VERSION_20}, new int[] {F_21, ClassFileConstants.MAJOR_VERSION_21}, new int[] {F_22, ClassFileConstants.MAJOR_VERSION_22}, - new int[] {F_23, ClassFileConstants.MAJOR_VERSION_23}, + new int[] {F_23, ClassFileConstants.MAJOR_VERSION_23} }; /**