From: aclement Date: Tue, 8 Sep 2009 20:58:31 +0000 (+0000) Subject: 288049: wrong message for wildcarded dec anno: fix X-Git-Tag: V1_6_6~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21acc37186a54ed6293634acf43072298377b679;p=aspectj.git 288049: wrong message for wildcarded dec anno: fix --- diff --git a/tests/bugs166/pr288049/org/othtests/AddSomeAnnotation.java b/tests/bugs166/pr288049/org/othtests/AddSomeAnnotation.java new file mode 100644 index 000000000..7960a93f0 --- /dev/null +++ b/tests/bugs166/pr288049/org/othtests/AddSomeAnnotation.java @@ -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 index 000000000..5b32b2af9 --- /dev/null +++ b/tests/bugs166/pr288049/org/othtests/MyClass.java @@ -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 index 000000000..e99d99826 --- /dev/null +++ b/tests/bugs166/pr288049/org/othtests/MySubClass.java @@ -0,0 +1,13 @@ +package org.othtests; + +public class MySubClass extends MyClass { + + public String doOne() { + return "one"; + } + + public String doTwo() { + return "two"; + } + +} diff --git a/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java index b1265f46f..d497e37f6 100644 --- a/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java @@ -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"); diff --git a/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml index 27ba2bf23..073933789 100644 --- a/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml +++ b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml @@ -2,15 +2,18 @@ + + + + + + + - - - -