]> source.dussan.org Git - aspectj.git/commitdiff
test for 156058 - commented out
authoraclement <aclement>
Wed, 13 Sep 2006 13:06:38 +0000 (13:06 +0000)
committeraclement <aclement>
Wed, 13 Sep 2006 13:06:38 +0000 (13:06 +0000)
tests/bugs153/pr156058/Bug.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
tests/src/org/aspectj/systemtest/ajc153/ajc153.xml

diff --git a/tests/bugs153/pr156058/Bug.java b/tests/bugs153/pr156058/Bug.java
new file mode 100644 (file)
index 0000000..6c63dfe
--- /dev/null
@@ -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(* *..*.*(..));
+  }
+}
index 3901c28d580d9ecff055acfbd9ac40f6b16dd933..bca26506d7021fe100e9e806c4f39ed4793f4b49 100644 (file)
@@ -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");}
index a6108fb1ad766089df4efead7a23c1a6c16d7219..6c039d0bab5c300924d5d314b075749d69bbe3a1 100644 (file)
@@ -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>