aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-03-10 13:34:55 +0000
committeracolyer <acolyer>2005-03-10 13:34:55 +0000
commit85aa1520881e7271e658b9377dfd020fde28868c (patch)
treebe10a11fe7dd8c4799c4ca75d870bba801d86d94 /tests/src/org/aspectj
parentea5908c3891ef93331c89e5738770af2712cb5dd (diff)
downloadaspectj-85aa1520881e7271e658b9377dfd020fde28868c.tar.gz
aspectj-85aa1520881e7271e658b9377dfd020fde28868c.zip
fix for Bugzilla Bug 87376
NPE when unresolved type of a bound var in a pointcut expression (EclipseFactory.java:224)
Diffstat (limited to 'tests/src/org/aspectj')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml7
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 556f2d4ea..82e1aed27 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -125,6 +125,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
}
}
+ public void npeOnTypeNotFound() {
+ runTest("structure model npe on type not found");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 7329d2996..e043fc878 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -40,6 +40,13 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs150/pr87376" title="structure model npe on type not found">
+ <compile files="I.java,NPE.aj" options="-emacssym">
+ <message kind="error" line="8" text="I cannot be resolved to a type"/>
+ <message kind="error" line="10" text="I cannot be resolved to a type"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="decp" pr="80249" title="Order of types passed to compiler determines weaving behavior">
<compile files="A.java,B.java,AspectX.java"/>
<run class="B"/>