From: aclement Date: Wed, 21 Jan 2009 01:19:36 +0000 (+0000) Subject: 209051: moved test to 164 X-Git-Tag: pre268419~210 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=284586a44e50405944ad35cd9846e9215528fb89;p=aspectj.git 209051: moved test to 164 --- diff --git a/tests/bugs164/pr209051/Bug.java b/tests/bugs164/pr209051/Bug.java new file mode 100644 index 000000000..ac1bf7b8e --- /dev/null +++ b/tests/bugs164/pr209051/Bug.java @@ -0,0 +1,21 @@ +import org.aspectj.lang.annotation.*; + +public @Aspect class Bug { + @Pointcut("args(i) && if() && within(Foo)") + public static boolean pc(int i) { + return i < 0; + } + + @Before("pc(*)") + public void advice() { System.out.println("advice running");} + + public static void main(String []argv) { + new Foo().trigger(-1); + new Foo().trigger(+1); + } +} + +class Foo { + public void trigger(int i) {} +} + diff --git a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java index 0ca91b4ff..82a918543 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -87,7 +87,6 @@ public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("dec atanno and decp"); } - // public void testStarInAnnoStyle_pr209951() { runTest("asterisk in at aj pointcut"); } public void testMissingMarkers_pr197720() { runTest("missing markers on inherited annotated method"); } diff --git a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml index c05528c63..67d529270 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml @@ -92,14 +92,6 @@ - - - - - - - -