From e88e1a38c43abbfabdb407d51a3dd122afede672 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 18 Aug 2005 09:31:05 +0000 Subject: follow-on test for pr107159 --- tests/bugs150/pr107059_2.aj | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/bugs150/pr107059_2.aj (limited to 'tests') 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 -- cgit v1.2.3