aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr327141
diff options
context:
space:
mode:
authoraclement <aclement>2011-10-03 22:40:58 +0000
committeraclement <aclement>2011-10-03 22:40:58 +0000
commit04de50018188c4602ea3af5298715544f6f0faa1 (patch)
treeb832075c323b04e3909b9901904b1980a76a68af /tests/bugs1612/pr327141
parent14a6eac32a20c81682e9b6875e8c3a4a8d9e8897 (diff)
downloadaspectj-04de50018188c4602ea3af5298715544f6f0faa1.tar.gz
aspectj-04de50018188c4602ea3af5298715544f6f0faa1.zip
327141
Diffstat (limited to 'tests/bugs1612/pr327141')
-rw-r--r--tests/bugs1612/pr327141/AspectWithConstant.aj17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs1612/pr327141/AspectWithConstant.aj b/tests/bugs1612/pr327141/AspectWithConstant.aj
new file mode 100644
index 000000000..1dea5b8f4
--- /dev/null
+++ b/tests/bugs1612/pr327141/AspectWithConstant.aj
@@ -0,0 +1,17 @@
+import java.lang.annotation.*;
+
+public aspect AspectWithConstant {
+ declare @field : * AspectWithConstant.MAX* : @Loggable;
+ public static final int MAX = 9;
+ public static final float MAXf = 9.0f;
+ public static final double MAXd = 9.0d;
+ public static final long MAXl = 9L;
+ public static final Class MAXc = String.class;
+ @Retention(RetentionPolicy.RUNTIME)
+ @interface Loggable { }
+
+ public static void main(String []argv) throws Exception {
+ System.out.println("MAX="+MAX);
+System.out.println(AspectWithConstant.class.getDeclaredField("MAX").getAnnotation(Loggable.class));
+ }
+}