aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc150/GenericsTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc150/GenericsTests.java')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc150/GenericsTests.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc150/GenericsTests.java b/tests/src/test/java/org/aspectj/systemtest/ajc150/GenericsTests.java
index ac432a706..86f426edb 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc150/GenericsTests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc150/GenericsTests.java
@@ -529,7 +529,10 @@ public class GenericsTests extends XMLBasedAjcTestCase {
public void testGenericITDsBridgeMethodsPR91381() {runTest("abstract intertype methods and covariant returns");}
- public void testGenericITDsBridgeMethodsPR91381_2() {runTest("abstract intertype methods and covariant returns - error");}
+
+ // Changed with Java23 because can no longer compile with -1.4 flag so the only way to get the expected error is
+ // to violate covariant returns more explicitly
+ public void testGenericITDsBridgeMethodsPR91381_2() {runTest("abstract intertype methods and covariant returns - 2");}
// ----------------------------------------------------------------------------------------
// generic declare parents tests