aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-03 13:49:07 +0000
committeraclement <aclement>2006-07-03 13:49:07 +0000
commitf6834c7692082a20e94f7d88841e6c7c3f96c26a (patch)
tree1784ed9360cbd0aee717da073fd573cfe5b5926d /tests
parent8930b0ddd121c0235689469fec3ebe8b86a65c40 (diff)
downloadaspectj-f6834c7692082a20e94f7d88841e6c7c3f96c26a.tar.gz
aspectj-f6834c7692082a20e94f7d88841e6c7c3f96c26a.zip
test and fix for 148737
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs153/pr148737/A.java19
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/ajc153.xml6
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs153/pr148737/A.java b/tests/bugs153/pr148737/A.java
new file mode 100644
index 000000000..9c9360b51
--- /dev/null
+++ b/tests/bugs153/pr148737/A.java
@@ -0,0 +1,19 @@
+public abstract class A<E> {
+ public A() { }
+ public void setUniqueID(Object o) {}
+}
+
+class B extends A {
+ public B() {}
+}
+
+class D {
+ public void method() {
+ B b = new B();
+ b.setUniqueID(null);
+ }
+}
+
+aspect TestAspect {
+ before(): call(public void *.*()) { }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index 8899c4581..2fdfb4664 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -20,6 +20,8 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// public void testArgnamesAndJavac_pr148381() { runTest("argNames and javac");}
+ public void testIllegalStateException_pr148737() { runTest("illegalstateexception for non generic type");}
+
/////////////////////////////////////////
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Ajc153Tests.class);
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index 45371bed1..ae3f14d87 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -14,4 +14,10 @@
</run>
</ajc-test>
+ <ajc-test dir="bugs153/pr148737" title="illegalstateexception for non generic type">
+ <compile files="A.java" options="-source 5 -target 5">
+ <message kind="warning" line="18" text="advice defined in TestAspect has not been applied"/>
+ </compile>
+ </ajc-test>
+
</suite> \ No newline at end of file