From 045e82d5cebc9c9674ac71cffa3fefc34eeb042f Mon Sep 17 00:00:00 2001 From: aclement Date: Sun, 25 Jun 2006 17:59:34 +0000 Subject: [PATCH] testcode for 148536 and 148537 --- tests/bugs152/pr148536/Bug.java | 3 +++ tests/bugs152/pr148537/MyAspect.java | 5 +++++ tests/bugs152/pr148537/MyClass.java | 9 +++++++++ tests/src/org/aspectj/systemtest/ajc152/ajc152.xml | 10 ++++++++++ 4 files changed, 27 insertions(+) create mode 100644 tests/bugs152/pr148536/Bug.java create mode 100644 tests/bugs152/pr148537/MyAspect.java create mode 100644 tests/bugs152/pr148537/MyClass.java diff --git a/tests/bugs152/pr148536/Bug.java b/tests/bugs152/pr148536/Bug.java new file mode 100644 index 000000000..592801ad2 --- /dev/null +++ b/tests/bugs152/pr148536/Bug.java @@ -0,0 +1,3 @@ +public aspect Bug { + declare @type : Bug+ : @SomeAnnotation; +} \ No newline at end of file diff --git a/tests/bugs152/pr148537/MyAspect.java b/tests/bugs152/pr148537/MyAspect.java new file mode 100644 index 000000000..a8c54c2fc --- /dev/null +++ b/tests/bugs152/pr148537/MyAspect.java @@ -0,0 +1,5 @@ +privileged public aspect MyAspect { + + declare @type : MyClass+ : @MyClass.MyAnnotation; + +} \ No newline at end of file diff --git a/tests/bugs152/pr148537/MyClass.java b/tests/bugs152/pr148537/MyClass.java new file mode 100644 index 000000000..81515b42a --- /dev/null +++ b/tests/bugs152/pr148537/MyClass.java @@ -0,0 +1,9 @@ + +import java.lang.annotation.*; + +public class MyClass { + + @Retention({RetentionPolicy.RUNTIME}) + private @interface MyAnnotation { + } +} \ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml index 87d466f62..aba07f7bc 100644 --- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml +++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml @@ -102,6 +102,16 @@ + + + + + + + + + + -- 2.39.5