Skip to content

Commit d9a8cba

Browse files
skip tests using flexible constructor bodies below 25
1 parent 3bc205d commit d9a8cba

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InitializationTests.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ public WrongNotInitialized() {
514514
});
515515
}
516516
public void testIssue4416_withPrologue() {
517+
if (this.complianceLevel < ClassFileConstants.JDK25)
518+
return; // uses flexible constructor bodies
517519
runConformTest(new String[] {
518520
"WrongNotInitialized.java",
519521
"""
@@ -559,6 +561,8 @@ public class Test {
559561
});
560562
}
561563
public void testIssue4416b_withPrologue() {
564+
if (this.complianceLevel < ClassFileConstants.JDK25)
565+
return; // uses flexible constructor bodies
562566
runConformTest(new String[] {
563567
"Test.java",
564568
"""
@@ -601,8 +605,8 @@ public TestRecord(int b)
601605
});
602606
}
603607
public void testIssue4416c_withPrologue() {
604-
if (this.complianceLevel < ClassFileConstants.JDK16)
605-
return;
608+
if (this.complianceLevel < ClassFileConstants.JDK25)
609+
return; // uses flexible constructor bodies
606610
runConformTest(new String[] {
607611
"TestRecord.java",
608612
"""
@@ -643,6 +647,8 @@ public class Test {
643647
//https://github.com/eclipse-jdt/eclipse.jdt.core/issues/4416
644648
//Bogus error: The blank final field o may not have been initialized
645649
public void testIssue4416d_withPrologue() {
650+
if (this.complianceLevel < ClassFileConstants.JDK25)
651+
return; // uses flexible constructor bodies
646652
runConformTest(new String[] {
647653
"Test.java",
648654
"""

0 commit comments

Comments
 (0)