Skip to content

Commit

Permalink
Revert "Run more tests with Java 23"
Browse files Browse the repository at this point in the history
This reverts commit 13618d9 as
upstream as applied similar/better change when merging Java 23 support
  • Loading branch information
mickaelistria committed Sep 24, 2024
1 parent 6113062 commit 9fb5696
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,16 @@ 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);
// 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));
}
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));
}
return all;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ public static Test suite() {
// since_22.add(SuperAfterStatementsTest.class);
since_22.add(UnnamedPatternsAndVariablesTest.class);
since_22.add(UseOfUnderscoreJava22Test.class);
since_22.add(SuperAfterStatementsTest.class);
since_22.add(SwitchPatternTest21.class);

ArrayList since_23 = new ArrayList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};

/**
Expand Down

0 comments on commit 9fb5696

Please sign in to comment.