diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs164/pr209051/Bug.java | 21 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc162/ajc162.xml | 8 |
3 files changed, 21 insertions, 9 deletions
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 @@ </compile> </ajc-test> - <ajc-test dir="bugs162/pr209051" title="asterisk in at aj pointcut"> - <compile options="-1.5" files="Bug.java"/> - <run class="Bug"> - <stdout> - <line text="x"/> - </stdout> - </run> - </ajc-test> <ajc-test dir="bugs162/pr197720" title="missing markers on inherited annotated method"> <compile files="C1.java C2.java C3.java MyAnn.java MyAnnAspect.java" options="-1.5 -showWeaveInfo"> |