]> source.dussan.org Git - aspectj.git/commitdiff
testcode - incorrect message with itd of default implementation using generic types
authoraclement <aclement>
Wed, 5 Mar 2008 22:19:44 +0000 (22:19 +0000)
committeraclement <aclement>
Wed, 5 Mar 2008 22:19:44 +0000 (22:19 +0000)
tests/bugs160/various/IncorrectMessage.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
tests/src/org/aspectj/systemtest/ajc160/ajc160.xml

diff --git a/tests/bugs160/various/IncorrectMessage.java b/tests/bugs160/various/IncorrectMessage.java
new file mode 100644 (file)
index 0000000..632bcf3
--- /dev/null
@@ -0,0 +1,14 @@
+
+class Foo<A> extends FooBase implements Marker{}//Marker<A> { }
+
+interface Marker<A> { }
+
+aspect AspectDoWhatEver {
+    void Marker.doWhatEver()  { // do nothing
+    }
+}
+
+abstract class FooBase
+{
+    abstract void doWhatEver();
+}
\ No newline at end of file
index cf88304c21c0a80da2b1ae0002636bbcd2d025ae..4d66e0c2af741847a4ace2ac6639544dfeb79373 100644 (file)
@@ -21,6 +21,7 @@ import junit.framework.Test;
 public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
        
        // AspectH1.6.0rc1
+       public void testBadMessage() { runTest("incorrect itd error with generics");}
        public void testHasMethodAnnoValueInt_various() { runTest("hasmethod anno value - I");}
        public void testHasMethodAnnoValueBoolean_various() { runTest("hasmethod anno value - Z");}
        
index 35bc56a79fae91b606fc4bb2df9ab0a334084116..92db7b0fc84752f4772da53d687fe05bdd2d8b58 100644 (file)
@@ -3,6 +3,11 @@
 <!-- AspectJ v1.6.0 Tests -->
 <suite>
 
+
+   <ajc-test dir="bugs160/various" title="incorrect itd error with generics">
+     <compile options="-1.5 -showWeaveInfo" files="IncorrectMessage.java"/>
+   </ajc-test>
+   
    <ajc-test dir="bugs160/various" title="hasmethod anno value - I">
      <compile options="-1.5 -XhasMember -showWeaveInfo" files="A.java">
        <message kind="weave" text="Extending interface set for type 'B' (A.java) to include 'java.io.Serializable' (A.java)"/>