diff options
author | aclement <aclement> | 2005-01-07 13:46:12 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-01-07 13:46:12 +0000 |
commit | e08b5a42e6cd8ec569d3f62e05c0c7c9aa9a585b (patch) | |
tree | 97ab85d6762ad6188f34c01cde1c380f822abb95 /tests/migration/Aspect120.java | |
parent | 83a975d6488eb8cb08e4cdcd7385ce2c0915c309 (diff) | |
download | aspectj-e08b5a42e6cd8ec569d3f62e05c0c7c9aa9a585b.tar.gz aspectj-e08b5a42e6cd8ec569d3f62e05c0c7c9aa9a585b.zip |
Testcode for migration testing
Diffstat (limited to 'tests/migration/Aspect120.java')
-rw-r--r-- | tests/migration/Aspect120.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/migration/Aspect120.java b/tests/migration/Aspect120.java new file mode 100644 index 000000000..e51bc4093 --- /dev/null +++ b/tests/migration/Aspect120.java @@ -0,0 +1,21 @@ +// Aspect should be built with AspectJ 1.2.0 into aspects120.jar +// We are testing the new AspectJ can recognize old aspects + +public aspect Aspect120 { + + pointcut anyMethodCall(): execution(* main(..)); + + pointcut setIntField(): set(int *); + + pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..))); + + pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..))); + + before(): complex() { } + + after(): complex() { } + + void around(): anyMethodCall() { + proceed(); + } +} |