summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr107059_2.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr107059_2.aj')
-rw-r--r--tests/bugs150/pr107059_2.aj14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/bugs150/pr107059_2.aj b/tests/bugs150/pr107059_2.aj
new file mode 100644
index 000000000..73045726f
--- /dev/null
+++ b/tests/bugs150/pr107059_2.aj
@@ -0,0 +1,14 @@
+
+public aspect pr107059_2 {
+
+ before() : target(@Foo *) { // not allowed type pattern in target of course!
+ System.out.println("hi");
+ }
+
+ void bar(Object o) {
+ o.toString(); // generates o hasAnnotation(Foo.class) test
+ }
+
+}
+
+@interface Foo {} \ No newline at end of file