aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-09-13 13:06:38 +0000
committeraclement <aclement>2006-09-13 13:06:38 +0000
commit9892449cd6366540f650b45f548f8cc74f6fcae2 (patch)
tree4d279cbaa104fbd3d8030d6236fdf106be5e69eb
parentb49e8cae5b2473c7285c29f3ff33a621513ebbd5 (diff)
downloadaspectj-9892449cd6366540f650b45f548f8cc74f6fcae2.tar.gz
aspectj-9892449cd6366540f650b45f548f8cc74f6fcae2.zip
test for 156058 - commented out
-rw-r--r--tests/bugs153/pr156058/Bug.java11
-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, 18 insertions, 1 deletions
diff --git a/tests/bugs153/pr156058/Bug.java b/tests/bugs153/pr156058/Bug.java
new file mode 100644
index 000000000..6c63dfe07
--- /dev/null
+++ b/tests/bugs153/pr156058/Bug.java
@@ -0,0 +1,11 @@
+aspect MyAspect implements MyInterface<MyClass> {
+ before() : MyAspect1<MyClass>.myPointcutInInterface(){ }
+}
+
+class MyClass { }
+
+interface MyInterface<T>{
+ public abstract static aspect MyAspect1<T> {
+ public final pointcut myPointcutInInterface() : call(* *..*.*(..));
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index 3901c28d5..bca26506d 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -27,7 +27,7 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// public void testArgnamesAndJavac_pr148381() { runTest("argNames and javac");}
// public void testCFlowXMLAspectLTW_pr149096() { runTest("cflow xml concrete aspect"); }
// public void testAmbiguousBinding_pr121805() { runTest("ambiguous binding");}
-
+// public void testNoIllegalStateExceptionWithGenericInnerAspect_pr156058() { runTest("no IllegalStateException with generic inner aspect"); }
public void testNoIllegalStateExceptionFromAsmDelegate_pr153490_1() { runTest("no illegal state exception from AsmDelegate - 1");}
public void testNoIllegalStateExceptionFromAsmDelegate_pr153490_2() { runTest("no illegal state exception from AsmDelegate - 2");}
public void testNoIllegalStateExceptionFromAsmDelegate_pr153490_3() { runTest("no illegal state exception from AsmDelegate - 3");}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index a6108fb1a..6c039d0ba 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -3,6 +3,12 @@
<!-- AspectJ v1.5.3 Tests -->
<suite>
+ <ajc-test dir="bugs153/pr156058" title="no IllegalStateException with generic inner aspect">
+ <compile files="Bug.java" options="-1.5">
+ <message kind="warning" line="2" text="advice defined in MyAspect has not been applied [Xlint:adviceDidNotMatch]"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs153/pr153490" title="no illegal state exception from AsmDelegate - 1">
<compile files="Foo.java" options="-1.5" classpath="jarForFoo.jar" />
</ajc-test>