aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-22 23:36:20 +0000
committeraclement <aclement>2008-08-22 23:36:20 +0000
commitd0847f9ab70e8891bf1f5569c1740f0baa0d59cb (patch)
tree7e85afc5fd0c0bf477471a4224513a476cfcf0d9 /tests/bugs162
parent7aef243f67f9cdcac4bc6abc5eadb59a9f9700c6 (diff)
downloadaspectj-d0847f9ab70e8891bf1f5569c1740f0baa0d59cb.tar.gz
aspectj-d0847f9ab70e8891bf1f5569c1740f0baa0d59cb.zip
163005: testcode
Diffstat (limited to 'tests/bugs162')
-rw-r--r--tests/bugs162/pr163005/ProblemAspect.java13
-rw-r--r--tests/bugs162/pr163005/SomeClass.java4
-rw-r--r--tests/bugs162/pr163005/SomeInterface.java4
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;
+}
+