From 7ff02e4ff631243b0870f148deedf7d96ecf46be Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 18 Jul 2011 16:51:31 +0000 Subject: [PATCH] 352363 --- tests/bugs1612/pr352363/Code.java | 25 +++++++++++++++++++ .../systemtest/ajc1612/Ajc1612Tests.java | 4 +++ .../aspectj/systemtest/ajc1612/ajc1612.xml | 7 ++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/bugs1612/pr352363/Code.java 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 @@ + + + + + + + -- 2.39.5