Skip to content

Commit

Permalink
ResourceLeakTests & ResourceLeakAnnotatedTests fail in some complianc…
Browse files Browse the repository at this point in the history
…e levels when run locally via RunJDTCoreTests (eclipse-jdt#2042)

fixes eclipse-jdt#2041

Don't try to run affected Tests below 1.7 (not designed to do so)
  • Loading branch information
stephan-herrmann committed Feb 17, 2024
1 parent 6eab603 commit e3e6fd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7036,6 +7036,8 @@ public void testBug499037_010_since_9() {
options);
}
public void testGH1762() {
if (this.complianceLevel < ClassFileConstants.JDK1_7)
return; // uses t-w-r
runLeakTest(
new String[] {
"X.java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public static Test suite() {
standardTests.add(ManifestAnalyzerTest.class);
standardTests.add(InitializationTests.class);
standardTests.add(ResourceLeakTests.class);
standardTests.add(ResourceLeakAnnotatedTests.class);
standardTests.add(PackageBindingTest.class);

// add all javadoc tests
Expand Down Expand Up @@ -137,6 +136,8 @@ public static Test suite() {
since_1_7.add(PolymorphicSignatureTest.class);
since_1_7.add(Compliance_1_7.class);
since_1_7.add(MethodHandleTest.class);
since_1_7.add(ResourceLeakAnnotatedTests.class);


ArrayList since_1_8 = new ArrayList();
since_1_8.add(NegativeTypeAnnotationTest.class);
Expand Down

0 comments on commit e3e6fd3

Please sign in to comment.