diff options
author | aclement <aclement> | 2006-10-16 13:04:42 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-10-16 13:04:42 +0000 |
commit | d701aa00e0747e5b14180867bd8f3d5213c90a71 (patch) | |
tree | d6308a138509a634bc37c0b10f36251761c29130 /tests/model/pr160469_2 | |
parent | 9030415d5741f7d4ac96cd055e860c7760d93d37 (diff) | |
download | aspectj-d701aa00e0747e5b14180867bd8f3d5213c90a71.tar.gz aspectj-d701aa00e0747e5b14180867bd8f3d5213c90a71.zip |
tests and fixes for 160469: handle problems
Diffstat (limited to 'tests/model/pr160469_2')
-rw-r--r-- | tests/model/pr160469_2/AbstractBeanConfigurerAspect.aj | 9 | ||||
-rw-r--r-- | tests/model/pr160469_2/AnnotationBeanConfigurerAspect.aj | 6 | ||||
-rw-r--r-- | tests/model/pr160469_2/README.txt | 3 | ||||
-rw-r--r-- | tests/model/pr160469_2/Simple.java | 8 | ||||
-rw-r--r-- | tests/model/pr160469_2/aspects.jar | bin | 0 -> 1975 bytes |
5 files changed, 26 insertions, 0 deletions
diff --git a/tests/model/pr160469_2/AbstractBeanConfigurerAspect.aj b/tests/model/pr160469_2/AbstractBeanConfigurerAspect.aj new file mode 100644 index 000000000..fae768752 --- /dev/null +++ b/tests/model/pr160469_2/AbstractBeanConfigurerAspect.aj @@ -0,0 +1,9 @@ +package pkg; + +public abstract aspect AbstractBeanConfigurerAspect { + + protected abstract pointcut beanCreation(); + + declare warning : beanCreation() : "warning"; + +} diff --git a/tests/model/pr160469_2/AnnotationBeanConfigurerAspect.aj b/tests/model/pr160469_2/AnnotationBeanConfigurerAspect.aj new file mode 100644 index 000000000..72877ef06 --- /dev/null +++ b/tests/model/pr160469_2/AnnotationBeanConfigurerAspect.aj @@ -0,0 +1,6 @@ +package pkg; + +public aspect AnnotationBeanConfigurerAspect extends AbstractBeanConfigurerAspect { + + protected pointcut beanCreation() : initialization(*.new(..)) && !within(pkg.*); +} diff --git a/tests/model/pr160469_2/README.txt b/tests/model/pr160469_2/README.txt new file mode 100644 index 000000000..e1d445a75 --- /dev/null +++ b/tests/model/pr160469_2/README.txt @@ -0,0 +1,3 @@ +to regenerate the jar file in this directory: + +ajc AbstractBeanConfigurerAspect.aj AnnotationBeanConfigurerAspect.aj -outjar aspects.jar diff --git a/tests/model/pr160469_2/Simple.java b/tests/model/pr160469_2/Simple.java new file mode 100644 index 000000000..26b84d77b --- /dev/null +++ b/tests/model/pr160469_2/Simple.java @@ -0,0 +1,8 @@ +package test; + +public class Simple { + + public Simple() { + } + +} diff --git a/tests/model/pr160469_2/aspects.jar b/tests/model/pr160469_2/aspects.jar Binary files differnew file mode 100644 index 000000000..ac74b57f2 --- /dev/null +++ b/tests/model/pr160469_2/aspects.jar |