summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-14 09:50:22 +0000
committeraclement <aclement>2005-11-14 09:50:22 +0000
commit563ab1bc7659edf2d42bed64f131b2a6df1ac56a (patch)
tree0e30b8f5ddb62d4fbec09c52b83b3c2219f15a39 /tests
parent21472d1c9b53e7d5b2f69942f04db583c34a0237 (diff)
downloadaspectj-563ab1bc7659edf2d42bed64f131b2a6df1ac56a.tar.gz
aspectj-563ab1bc7659edf2d42bed64f131b2a6df1ac56a.zip
fix for parser crash on erroneous perthis() - see pr115788
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs150/pr115788/AAA.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml6
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/bugs150/pr115788/AAA.java b/tests/bugs150/pr115788/AAA.java
new file mode 100644
index 000000000..9a2e4c7c6
--- /dev/null
+++ b/tests/bugs150/pr115788/AAA.java
@@ -0,0 +1,4 @@
+package a;
+
+public aspect AAA perthis(this(Screen)) { }
+
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index a7993fb86..1bb8a5aa2 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -49,6 +49,7 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testGenericITDsAndAbstractMethodError_pr102357() { runTest("generic itds and abstract method error");}
*/
+ public void testParserException_pr115788() { runTest("parser exception");}
public void testPossibleStaticImports_pr113066_1() { runTest("possible static imports bug - 1");}
public void testPossibleStaticImports_pr113066_2() { runTest("possible static imports bug - 2");}
public void testPossibleStaticImports_pr113066_3() { runTest("possible static imports bug - 3");}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index e5122ff09..b2d871101 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -57,6 +57,12 @@
<compile files="Consts.java,TestNPE.java" options="-1.5"/>
</ajc-test>
+ <ajc-test dir="bugs150/pr115788" title="parser exception">
+ <compile files="AAA.java">
+ <message kind="warning" line="3" text="no match for this type name: Screen"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 2">
<compile files="Consts2.java,TestNPE2.java" options="-1.5">
<message kind="error" line="2" text="The import a.Consts2.A_CONST cannot be resolved"/>