diff options
author | aclement <aclement> | 2008-05-31 03:30:13 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-31 03:30:13 +0000 |
commit | ea4ce887e128cf0182ccbf764a171137ea659272 (patch) | |
tree | d25da855a6bca33f2369c192deb5f71a1e9014d6 /tests/features161/optimizedAnnotationBinding/CaseSix.java | |
parent | 8892246b8670e80c47339e7e9257350dc9b6063f (diff) | |
download | aspectj-ea4ce887e128cf0182ccbf764a171137ea659272.tar.gz aspectj-ea4ce887e128cf0182ccbf764a171137ea659272.zip |
234943: testcode
Diffstat (limited to 'tests/features161/optimizedAnnotationBinding/CaseSix.java')
-rw-r--r-- | tests/features161/optimizedAnnotationBinding/CaseSix.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/features161/optimizedAnnotationBinding/CaseSix.java b/tests/features161/optimizedAnnotationBinding/CaseSix.java new file mode 100644 index 000000000..f501df84a --- /dev/null +++ b/tests/features161/optimizedAnnotationBinding/CaseSix.java @@ -0,0 +1,23 @@ +// CaseSix - not an execution join point - compiler limitation +import java.lang.annotation.*; + +public class CaseSix { + + @Anno static String s; + + public static void main(String []argv) { + s = "hello"; + } + +} +enum Level { NONE; } + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno { Level value() default Level.NONE; } + +aspect X { + + before(Level l): set(@Anno * *) && @annotation(Anno(l)) { + System.out.println(l); + } +} |