From 7228f3d18d71496a4089a7d5807b3d234124dd7b Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 10 Dec 2004 13:29:53 +0000 Subject: [PATCH] Tests for declare parents where annotations are involved. --- tests/java5/annotations/AnnotationAspect04.aj | 11 +++++++++++ tests/java5/annotations/AnnotationAspect05.aj | 6 ++++++ .../java5/annotations/SimpleAnnotation2.java | 5 +++++ tests/java5/annotations/build.xml | 2 +- tests/java5/annotations/testcode.jar | Bin 1551 -> 1874 bytes 5 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/java5/annotations/AnnotationAspect04.aj create mode 100644 tests/java5/annotations/AnnotationAspect05.aj create mode 100644 tests/java5/annotations/SimpleAnnotation2.java diff --git a/tests/java5/annotations/AnnotationAspect04.aj b/tests/java5/annotations/AnnotationAspect04.aj new file mode 100644 index 000000000..62466ae1c --- /dev/null +++ b/tests/java5/annotations/AnnotationAspect04.aj @@ -0,0 +1,11 @@ +import java.lang.annotation.Annotation; + +public aspect AnnotationAspect04 { + declare parents: SimpleAnnotation implements java.io.Serializable; + + class C extends Annotation { } + declare parents: SimpleAnnotation extends C; + + class D {} + declare parents: D extends Annotation; +} diff --git a/tests/java5/annotations/AnnotationAspect05.aj b/tests/java5/annotations/AnnotationAspect05.aj new file mode 100644 index 000000000..1c5cf4b89 --- /dev/null +++ b/tests/java5/annotations/AnnotationAspect05.aj @@ -0,0 +1,6 @@ +import java.lang.annotation.Annotation; + +public aspect AnnotationAspect05 { + declare parents: SimpleA* implements java.io.Serializable; + +} diff --git a/tests/java5/annotations/SimpleAnnotation2.java b/tests/java5/annotations/SimpleAnnotation2.java new file mode 100644 index 000000000..66411fce8 --- /dev/null +++ b/tests/java5/annotations/SimpleAnnotation2.java @@ -0,0 +1,5 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +public @interface SimpleAnnotation2 { +} diff --git a/tests/java5/annotations/build.xml b/tests/java5/annotations/build.xml index 8a7a20bcc..a306a1979 100644 --- a/tests/java5/annotations/build.xml +++ b/tests/java5/annotations/build.xml @@ -3,7 +3,7 @@ - + diff --git a/tests/java5/annotations/testcode.jar b/tests/java5/annotations/testcode.jar index 5fd363171f65175e02e1637a245dee196a3b69a0..216c645ae3daec370964f40bfbb67a9ca47832ed 100644 GIT binary patch delta 465 zcmeC@xx~jC;LXg!#Q*|)iCq(U6_`Pkfhw4aFaS{-yXP>1=*?P8G7yF*vkqfDGm8iV z2M_{f48i)LggB56&de>yNp;N2%P&bR$;{6)(o4=sEH1YGnt$Dnjg8Hj&900suZ&Hu zj4jTMZQX-Emliz<*?wkDh#T9+2WRdy%?UZaXV0HWM<$*5W23xx&5=zmZfqwPT-r0~ z%$+M6&OAD!lEQklzK4g)PQmn-WoPBfU!4VM;}Idnpy|7t>uo~av~8=IO!S{ehR z8k?BG$x{c|mQ*%AdgE|r;;92C53n)>c(ZeS_%W|yC(v{1j0`|NFC&u(13cg+H?e@j zYVuYVQ&3n