From: aclement Date: Mon, 18 Jul 2011 16:51:31 +0000 (+0000) Subject: 352363 X-Git-Tag: V1_6_12M2~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ff02e4ff631243b0870f148deedf7d96ecf46be;p=aspectj.git 352363 --- diff --git a/tests/bugs1612/pr352363/Code.java b/tests/bugs1612/pr352363/Code.java new file mode 100644 index 000000000..2c2713390 --- /dev/null +++ b/tests/bugs1612/pr352363/Code.java @@ -0,0 +1,25 @@ +import java.lang.annotation.*; + +public class Code { + + @Anno + int i=0; + + @Anno(name="foobar") + int j=0; + + public void m() { + i = i+1; + j = j+1; + } +} + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno { + String name() default ""; +} + +aspect X { + declare warning: get(@Anno(name="") * *) : "name is empty1"; + declare warning: get(@Anno(name="foobar") * *) : "name is empty2"; +} diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 6275d7a3c..223c2f2c0 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java @@ -25,6 +25,10 @@ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // runTest("anno copying"); // } + public void testEmptyPattern_pr352363() { + runTest("empty pattern"); + } + public void testGenericsIssue_pr351592() { runTest("generics issue"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index b5a23db3c..87412fe06 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -2,6 +2,13 @@ + + + + + + +