From b95d3f555fc067c62ba763d6d891061e9caa653b Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 22 Mar 2010 19:16:34 +0000 Subject: [PATCH] 292262: testcode --- tests/bugs169/pr292262/A.java | 11 +++++++++++ .../org/aspectj/systemtest/ajc169/Ajc169Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc169/ajc169.xml | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/bugs169/pr292262/A.java diff --git a/tests/bugs169/pr292262/A.java b/tests/bugs169/pr292262/A.java new file mode 100644 index 000000000..4c7b1fd47 --- /dev/null +++ b/tests/bugs169/pr292262/A.java @@ -0,0 +1,11 @@ +package pkg; + +public class A { + +} + +aspect X { + declare warning: staticinitialization(*) && if(!thisEnclosingJoinPoint.toString().equals("abc")): "Foobar {joinpoint}"; + // before(): staticinitialization(*) && if(!thisEnclosingJoinPointStaticPart.getPackage().equals(thisJoinPoint.getPackage())) {} + //declare warning: staticinitialization(*) && if(true): "Foobar {joinpoint}"; +} diff --git a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java index bf5bbfcdf..640a2b56a 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java @@ -18,6 +18,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + //public void testStaticallyAnalyzableIf_292262_1() { + // runTest("if with statically recognizable code"); + //} + public void testTypePatternCategories_44365_Class() { runTest("type category type patterns - class"); } diff --git a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml index 308b273b7..caf0e8ec3 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml +++ b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml @@ -2,6 +2,12 @@ + + + + + + -- 2.39.5