You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/InitializationTests.java
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -514,6 +514,8 @@ public WrongNotInitialized() {
514
514
});
515
515
}
516
516
publicvoidtestIssue4416_withPrologue() {
517
+
if (this.complianceLevel < ClassFileConstants.JDK25)
518
+
return; // uses flexible constructor bodies
517
519
runConformTest(newString[] {
518
520
"WrongNotInitialized.java",
519
521
"""
@@ -559,6 +561,8 @@ public class Test {
559
561
});
560
562
}
561
563
publicvoidtestIssue4416b_withPrologue() {
564
+
if (this.complianceLevel < ClassFileConstants.JDK25)
565
+
return; // uses flexible constructor bodies
562
566
runConformTest(newString[] {
563
567
"Test.java",
564
568
"""
@@ -601,8 +605,8 @@ public TestRecord(int b)
601
605
});
602
606
}
603
607
publicvoidtestIssue4416c_withPrologue() {
604
-
if (this.complianceLevel < ClassFileConstants.JDK16)
605
-
return;
608
+
if (this.complianceLevel < ClassFileConstants.JDK25)
0 commit comments