diff options
author | aclement <aclement> | 2008-08-22 23:36:20 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-22 23:36:20 +0000 |
commit | d0847f9ab70e8891bf1f5569c1740f0baa0d59cb (patch) | |
tree | 7e85afc5fd0c0bf477471a4224513a476cfcf0d9 /tests/bugs162 | |
parent | 7aef243f67f9cdcac4bc6abc5eadb59a9f9700c6 (diff) | |
download | aspectj-d0847f9ab70e8891bf1f5569c1740f0baa0d59cb.tar.gz aspectj-d0847f9ab70e8891bf1f5569c1740f0baa0d59cb.zip |
163005: testcode
Diffstat (limited to 'tests/bugs162')
-rw-r--r-- | tests/bugs162/pr163005/ProblemAspect.java | 13 | ||||
-rw-r--r-- | tests/bugs162/pr163005/SomeClass.java | 4 | ||||
-rw-r--r-- | tests/bugs162/pr163005/SomeInterface.java | 4 |
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs162/pr163005/ProblemAspect.java b/tests/bugs162/pr163005/ProblemAspect.java new file mode 100644 index 000000000..e9cd5983f --- /dev/null +++ b/tests/bugs162/pr163005/ProblemAspect.java @@ -0,0 +1,13 @@ +public aspect ProblemAspect { + + pointcut init(): initialization(Object+.new(..)); + + pointcut staticinit(): staticinitialization(Object+); + + Class around(String className): cflowbelow(init() || staticinit()) && +call(Class Class.forName(String)) && args(className) { + System.out.println("Test"); + return proceed(className); + + } +} diff --git a/tests/bugs162/pr163005/SomeClass.java b/tests/bugs162/pr163005/SomeClass.java new file mode 100644 index 000000000..d9abe3651 --- /dev/null +++ b/tests/bugs162/pr163005/SomeClass.java @@ -0,0 +1,4 @@ +public class SomeClass implements SomeInterface { + public static void main(String []argv) {} +} + diff --git a/tests/bugs162/pr163005/SomeInterface.java b/tests/bugs162/pr163005/SomeInterface.java new file mode 100644 index 000000000..dd9e8134e --- /dev/null +++ b/tests/bugs162/pr163005/SomeInterface.java @@ -0,0 +1,4 @@ +public interface SomeInterface { + Class ADAPTER = SomeInterface.class; +} + |