diff options
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr153572/Annotated.java | 4 | ||||
-rw-r--r-- | tests/bugs153/pr153572/AnnotationMatcher.aj | 8 | ||||
-rw-r--r-- | tests/bugs153/pr153572/Configurable.java | 6 | ||||
-rw-r--r-- | tests/bugs153/pr153572/Main.java | 7 |
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 |