diff options
author | acolyer <acolyer> | 2004-08-10 16:33:42 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-08-10 16:33:42 +0000 |
commit | bf261abb3a295505a27f42a9d37d04c15a74ec6f (patch) | |
tree | 24e0e420ac76ad7879d4c76a93337a5f9b997545 /tests | |
parent | c5d8476b232fa84f766a1a84d1ab45ad8e3867b8 (diff) | |
download | aspectj-bf261abb3a295505a27f42a9d37d04c15a74ec6f.tar.gz aspectj-bf261abb3a295505a27f42a9d37d04c15a74ec6f.zip |
fix for Bugzilla Bug 61572
ITDs on inner classes should be static contexts
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java | 5 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java b/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java index e32a91e37..968eec0bc 100644 --- a/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java @@ -145,6 +145,9 @@ public class Ajc121Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void test026_bindingThisAndTargetToTheSameFormal() { runTest("ajc crashes when compiling the following program (binding this() and target())"); } - + + public void test027_itdsOnInnerClassesAsStatic() { + runTest("ITDs on inner classes should be static context"); + } } diff --git a/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml b/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml index 579adf58d..49cd75b36 100644 --- a/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml +++ b/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml @@ -203,7 +203,14 @@ <run class="Proceeding3"/> </ajc-test> - <ajc-test dir="bugs/oxford" pr="65319" + <ajc-test dir="bugs" pr="61572" + title="ITDs on inner classes should be static context"> + <compile files="PR61572.aj"> + <message kind="error" line="19" text="Cannot make a static reference to the non-static field zzz"></message> + </compile> + </ajc-test> + + <ajc-test dir="bugs/oxford" pr="65319" title="ajc crashes when compiling the following program (binding this() and target())"> <compile files="PR65319.java"> <message kind="error" line="7" text="Cannot use target() to match at this"/> |