diff options
author | aclement <aclement> | 2011-11-17 20:00:18 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-11-17 20:00:18 +0000 |
commit | c683091ce2887b8d5f406cc019c0001bf695434e (patch) | |
tree | 38554013b423243b356bc7aae9df3b40e4cedfa4 /tests/bugs170 | |
parent | 6e0ff8f48b26623ef111aaf4fab2e9ca27353a3d (diff) | |
download | aspectj-c683091ce2887b8d5f406cc019c0001bf695434e.tar.gz aspectj-c683091ce2887b8d5f406cc019c0001bf695434e.zip |
363979
Diffstat (limited to 'tests/bugs170')
-rw-r--r-- | tests/bugs170/pr363979/Example2.java | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/tests/bugs170/pr363979/Example2.java b/tests/bugs170/pr363979/Example2.java index d9b3bbf00..b22ebcf81 100644 --- a/tests/bugs170/pr363979/Example2.java +++ b/tests/bugs170/pr363979/Example2.java @@ -2,15 +2,15 @@ import java.lang.annotation.*; aspect X { -declare parents: - @SomeAnnotation(a = @Foo(value="123")) * implements java.io.Serializable; + declare parents: @Bar(value = "123") * implements java.io.Serializable; } - @SomeAnnotation(a = @Foo(value="123")) - public class Example { +@Bar(value="123") +@NamedQuery(name = "Department.findAll",query = "select d from Department d order by d.name ASC",hints = {@QueryHint(name = "org.hibernate.cacheable",value = "true")}) +public class Example2 { public static void main(String []argv) { - Example e = new Example(); + Example2 e = new Example2(); if (e instanceof java.io.Serializable) { System.out.println("yes"); } else { @@ -21,12 +21,21 @@ declare parents: } @Retention(RetentionPolicy.RUNTIME) -@interface Foo { +@interface QueryHint { + String name(); String value(); } @Retention(RetentionPolicy.RUNTIME) -@interface SomeAnnotation { - Foo a(); +@interface NamedQuery { + String name(); + String query(); + QueryHint[] hints(); } +@Retention(RetentionPolicy.RUNTIME) +@interface Bar { + String value(); +} + + |