diff options
author | aclement <aclement> | 2005-01-31 11:32:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-01-31 11:32:01 +0000 |
commit | 110b3d31ac12ea19c73963577fdfe18c69e5f4db (patch) | |
tree | 189df97e701774865b739127f70f220a2ea25e05 /tests/java5/annotations/binding/complexExample/X.java | |
parent | 4501853bf4c480479a517a714805291d04febb98 (diff) | |
download | aspectj-110b3d31ac12ea19c73963577fdfe18c69e5f4db.tar.gz aspectj-110b3d31ac12ea19c73963577fdfe18c69e5f4db.zip |
AnnotationBinding testcases: call and execution. Also verifies annotations in packages work correctly.
Diffstat (limited to 'tests/java5/annotations/binding/complexExample/X.java')
-rw-r--r-- | tests/java5/annotations/binding/complexExample/X.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/java5/annotations/binding/complexExample/X.java b/tests/java5/annotations/binding/complexExample/X.java new file mode 100644 index 000000000..b442e3a99 --- /dev/null +++ b/tests/java5/annotations/binding/complexExample/X.java @@ -0,0 +1,13 @@ +// Color should be resolved via the import statement... +import d.e.f.Color; + +public aspect X { + + before(): call(* *(..)) && @annotation(@Color) { + System.err.println("Before call to "+thisJoinPoint); + } + + before(): execution(* *(..)) && @annotation(@Color) { + System.err.println("Before execution of "+thisJoinPoint); + } +} |