summaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoracolyer <acolyer>2006-08-18 15:23:33 +0000
committeracolyer <acolyer>2006-08-18 15:23:33 +0000
commitfd3a8eca2517b4a7ab437c00e2c81a3cdefeeb3a (patch)
tree6c8d8a5fe90c70ebe3a734d50cc18d521a8f6a62 /tests/bugs153
parenta562d831df36dd0ec0cbf6ff0c6526ebc8977432 (diff)
downloadaspectj-fd3a8eca2517b4a7ab437c00e2c81a3cdefeeb3a.tar.gz
aspectj-fd3a8eca2517b4a7ab437c00e2c81a3cdefeeb3a.zip
tests for pr153572
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr153572/Annotated.java4
-rw-r--r--tests/bugs153/pr153572/AnnotationMatcher.aj8
-rw-r--r--tests/bugs153/pr153572/Configurable.java6
-rw-r--r--tests/bugs153/pr153572/Main.java7
4 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs153/pr153572/Annotated.java b/tests/bugs153/pr153572/Annotated.java
new file mode 100644
index 000000000..10a872b91
--- /dev/null
+++ b/tests/bugs153/pr153572/Annotated.java
@@ -0,0 +1,4 @@
+@Configurable
+public class Annotated {
+
+} \ No newline at end of file
diff --git a/tests/bugs153/pr153572/AnnotationMatcher.aj b/tests/bugs153/pr153572/AnnotationMatcher.aj
new file mode 100644
index 000000000..f7a7f4d10
--- /dev/null
+++ b/tests/bugs153/pr153572/AnnotationMatcher.aj
@@ -0,0 +1,8 @@
+public aspect AnnotationMatcher {
+
+ after() returning : initialization(*.new(..)) && @this(Configurable) {
+ System.out.println("annotated type initialized");
+ }
+
+
+} \ No newline at end of file
diff --git a/tests/bugs153/pr153572/Configurable.java b/tests/bugs153/pr153572/Configurable.java
new file mode 100644
index 000000000..be9014322
--- /dev/null
+++ b/tests/bugs153/pr153572/Configurable.java
@@ -0,0 +1,6 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Configurable {
+
+} \ No newline at end of file
diff --git a/tests/bugs153/pr153572/Main.java b/tests/bugs153/pr153572/Main.java
new file mode 100644
index 000000000..e0dc601cd
--- /dev/null
+++ b/tests/bugs153/pr153572/Main.java
@@ -0,0 +1,7 @@
+public class Main {
+
+ public static void main(String[] args) {
+ new Annotated();
+ }
+
+} \ No newline at end of file