aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ajcTests.xml
diff options
context:
space:
mode:
authoraclement <aclement>2004-07-27 14:17:32 +0000
committeraclement <aclement>2004-07-27 14:17:32 +0000
commitb18436307ecfed63c8995fd35013ffa07e5116e7 (patch)
treee8cc5630970d6be2a5f4cc321c0e0480cc0e9b2c /tests/ajcTests.xml
parent6fd3e87d4dc38f1e237cb6ab75321eadd56e0a75 (diff)
downloadaspectj-b18436307ecfed63c8995fd35013ffa07e5116e7.tar.gz
aspectj-b18436307ecfed63c8995fd35013ffa07e5116e7.zip
Fix for bug 69459
Hiding of Instance Methods by static methods
Diffstat (limited to 'tests/ajcTests.xml')
-rw-r--r--tests/ajcTests.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index a74b3d915..85c36164b 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -7776,4 +7776,23 @@
<message kind="error" line="9" text="can't bind type name 'unknown.Error'"/>
</compile>
</ajc-test>
+
+ <ajc-test dir="bugs/intertypeOverrides"
+ pr="69459" title="Hiding of Instance Methods by static methods">
+ <compile files="IntertypeOverrides.java">
+ <message kind="error" line="8" text="void Sub.m() cannot override void Super.m(); overriding method is static"/>
+ </compile>
+ <compile files="IntertypeOverrides2.java">
+ <message kind="error" line="8" text="void Sub.m() cannot override void Super.m(); overridden method is static"/>
+ </compile>
+ <compile files="Superclass.java,Subclass.java,Aspect1.java">
+ <message file="Aspect1.java" kind="error" line="2"
+ text="void Subclass.staticMethod() cannot override void Superclass.staticMethod(); overridden method is static"/>
+ </compile>
+ <compile files="Superclass.java,Subclass.java,Aspect2.java">
+ <message file="Aspect2.java" kind="error" line="2"
+ text="void Subclass.nonstaticMethod() cannot override void Superclass.nonstaticMethod(); overriding method is static"/>
+ </compile>
+ </ajc-test>
+
</suite>