diff options
author | aclement <aclement> | 2010-06-29 00:11:19 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-06-29 00:11:19 +0000 |
commit | 7a2f0c64f6454510b1d1933c85e93bc95c16ccea (patch) | |
tree | a03c1e79d4e2ba196e49cdaad3d0913ed2d47907 /tests/bugs169 | |
parent | 64940fd90b5a86aa4dfb1b4d5e271d5018e09b18 (diff) | |
download | aspectj-7a2f0c64f6454510b1d1933c85e93bc95c16ccea.tar.gz aspectj-7a2f0c64f6454510b1d1933c85e93bc95c16ccea.zip |
318241: resolving annotation values too early
Diffstat (limited to 'tests/bugs169')
-rw-r--r-- | tests/bugs169/pr318241/Pk.java | 3 | ||||
-rw-r--r-- | tests/bugs169/pr318241/PkItd.aj | 8 | ||||
-rw-r--r-- | tests/bugs169/pr318241/SomeAnnotation.java | 13 | ||||
-rw-r--r-- | tests/bugs169/pr318241/SomeClass.java | 5 | ||||
-rw-r--r-- | tests/bugs169/pr318241/Two.aj | 10 |
5 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs169/pr318241/Pk.java b/tests/bugs169/pr318241/Pk.java new file mode 100644 index 000000000..32f5f9f88 --- /dev/null +++ b/tests/bugs169/pr318241/Pk.java @@ -0,0 +1,3 @@ +package somepackage; + +public class Pk {} diff --git a/tests/bugs169/pr318241/PkItd.aj b/tests/bugs169/pr318241/PkItd.aj new file mode 100644 index 000000000..e061cb0be --- /dev/null +++ b/tests/bugs169/pr318241/PkItd.aj @@ -0,0 +1,8 @@ +package somepackage; + +privileged aspect PkItd { + + declare parents: Pk implements java.io.Serializable; + + private static final long Pk.serialVersionUID = -3602111784930992656L; +} diff --git a/tests/bugs169/pr318241/SomeAnnotation.java b/tests/bugs169/pr318241/SomeAnnotation.java new file mode 100644 index 000000000..68007a0a8 --- /dev/null +++ b/tests/bugs169/pr318241/SomeAnnotation.java @@ -0,0 +1,13 @@ +package somepackage; + +import java.io.Serializable; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.SOURCE) +public @interface SomeAnnotation { + Class<? extends Serializable> value() default Long.class; +} diff --git a/tests/bugs169/pr318241/SomeClass.java b/tests/bugs169/pr318241/SomeClass.java new file mode 100644 index 000000000..6456971f3 --- /dev/null +++ b/tests/bugs169/pr318241/SomeClass.java @@ -0,0 +1,5 @@ +package somepackage; + +@SomeAnnotation(value = Pk.class) +public class SomeClass { +} diff --git a/tests/bugs169/pr318241/Two.aj b/tests/bugs169/pr318241/Two.aj new file mode 100644 index 000000000..a4c106cb9 --- /dev/null +++ b/tests/bugs169/pr318241/Two.aj @@ -0,0 +1,10 @@ +import java.lang.annotation.*; + +public aspect Two { + declare parents: @Foo * implements II; +} + +interface II {} + +@Retention(RetentionPolicy.RUNTIME) +@interface Foo {} |