]> source.dussan.org Git - aspectj.git/commitdiff
288049: wrong message for wildcarded dec anno: fix
authoraclement <aclement>
Tue, 8 Sep 2009 20:58:31 +0000 (20:58 +0000)
committeraclement <aclement>
Tue, 8 Sep 2009 20:58:31 +0000 (20:58 +0000)
tests/bugs166/pr288049/org/othtests/AddSomeAnnotation.java [new file with mode: 0644]
tests/bugs166/pr288049/org/othtests/MyClass.java [new file with mode: 0644]
tests/bugs166/pr288049/org/othtests/MySubClass.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java
tests/src/org/aspectj/systemtest/ajc166/ajc166.xml

diff --git a/tests/bugs166/pr288049/org/othtests/AddSomeAnnotation.java b/tests/bugs166/pr288049/org/othtests/AddSomeAnnotation.java
new file mode 100644 (file)
index 0000000..7960a93
--- /dev/null
@@ -0,0 +1,7 @@
+package org.othtests;
+
+public aspect AddSomeAnnotation {
+
+       declare @method : public String MyClass+.do*(..) : @Deprecated;
+       
+}
diff --git a/tests/bugs166/pr288049/org/othtests/MyClass.java b/tests/bugs166/pr288049/org/othtests/MyClass.java
new file mode 100644 (file)
index 0000000..5b32b2a
--- /dev/null
@@ -0,0 +1,5 @@
+package org.othtests;
+
+public class MyClass {
+       
+}
diff --git a/tests/bugs166/pr288049/org/othtests/MySubClass.java b/tests/bugs166/pr288049/org/othtests/MySubClass.java
new file mode 100644 (file)
index 0000000..e99d998
--- /dev/null
@@ -0,0 +1,13 @@
+package org.othtests;
+
+public class MySubClass extends MyClass {
+
+       public String doOne() {
+               return "one";
+       }
+       
+       public String doTwo() {
+               return "two";
+       }
+       
+}
index b1265f46ffc36db3e0c31b91418b494a7a7fc508..d497e37f659f8bac00f8576618dac5bdba9926d7 100644 (file)
@@ -18,9 +18,9 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class Ajc166Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
-       // public void testITDannos_288049() {
-       // runTest("itd decanno");
-       // }
+       public void testITDannos_288049() {
+               runTest("itd decanno");
+       }
 
        public void testVerifyErrorAnnoStyle_288712() {
                runTest("verifyerror anno style");
index 27ba2bf235a8ccefd8bc4c3f937a20b4e3b69315..0739337899a4e7faed529b8d58482df120aabef6 100644 (file)
@@ -2,15 +2,18 @@
 
 <suite>
 
+  <ajc-test dir="bugs166/pr288049" title="itd decanno">
+     <compile files="org/othtests/MyClass.java org/othtests/MySubClass.java org/othtests/AddSomeAnnotation.java" options="-1.5 -showWeaveInfo">
+     <message kind="weave" text="'public java.lang.String org.othtests.MySubClass.doOne()' (MySubClass.java:5) is annotated with"/>
+     <message kind="weave" text="'public java.lang.String org.othtests.MySubClass.doTwo()' (MySubClass.java:9) is annotated with"/>
+     </compile>
+  </ajc-test>
+  
   <ajc-test dir="bugs166/pr288712" title="verifyerror anno style">
     <compile files="answers/Answer2h.java figures/FigureElement.java figures/Line.java figures/Point.java figures/ShapeFigureElement.java Main.java" options="-1.5"/>
     <run class="Main"/>
   </ajc-test>
   
-  <ajc-test dir="bugs166/pr288049" title="itd decanno">
-     <compile files="org/tests/AClass.java org/tests/ASubClass.java org/tests/DeclareAnns.aj" options="-1.5"/>
-  </ajc-test>
-  
   <ajc-test dir="bugs166/pr288635" title="munger cce">
      <compile files="org/tests/atann/AddAnnotations.aj org/tests/atann/AddITDDoMethod.aj org/tests/atann/InterceptTraceds.aj org/tests/atann/TestClass.java org/tests/atann/Traced.java" options="-1.5"/>
      <run class="org.tests.atann.TestClass"/>