diff options
author | aclement <aclement> | 2006-10-06 16:29:03 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-10-06 16:29:03 +0000 |
commit | d532892d89865511ea39286e4ebd34fc20b96a5d (patch) | |
tree | 6c6eeb9ba24b7afe1686603984763a729bc7b32a /tests/features153/jdtlikehandleprovider | |
parent | 2883a55829716132efcf288acec08bf3ab6826a7 (diff) | |
download | aspectj-d532892d89865511ea39286e4ebd34fc20b96a5d.tar.gz aspectj-d532892d89865511ea39286e4ebd34fc20b96a5d.zip |
tests and fixes for jdtlikehandleprovider, bug 159896
Diffstat (limited to 'tests/features153/jdtlikehandleprovider')
-rw-r--r-- | tests/features153/jdtlikehandleprovider/AdviceAndInjar.aj | 17 | ||||
-rw-r--r-- | tests/features153/jdtlikehandleprovider/AspectOnAspectPath.aj | 17 | ||||
-rw-r--r-- | tests/features153/jdtlikehandleprovider/ClassForAspectpath.java | 10 | ||||
-rw-r--r-- | tests/features153/jdtlikehandleprovider/DeclareAndInjar.aj | 9 | ||||
-rw-r--r-- | tests/features153/jdtlikehandleprovider/README.txt | 7 | ||||
-rw-r--r-- | tests/features153/jdtlikehandleprovider/advice.jar | bin | 0 -> 1580 bytes | |||
-rw-r--r-- | tests/features153/jdtlikehandleprovider/declare.jar | bin | 0 -> 1341 bytes | |||
-rw-r--r-- | tests/features153/jdtlikehandleprovider/jarForAspectPath.jar | bin | 0 -> 1507 bytes |
8 files changed, 60 insertions, 0 deletions
diff --git a/tests/features153/jdtlikehandleprovider/AdviceAndInjar.aj b/tests/features153/jdtlikehandleprovider/AdviceAndInjar.aj new file mode 100644 index 000000000..68a6ad56a --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/AdviceAndInjar.aj @@ -0,0 +1,17 @@ +public aspect AdviceAndInjar { + + pointcut p() : call(* *.*(..)) && !within(AdviceAndInjar); + + before() : p() { + } + + after() : p() { + } + + pointcut p1() : execution(* *.*(..)) && !within(AdviceAndInjar); + + Object around() : p1() { + return proceed(); + } + +} diff --git a/tests/features153/jdtlikehandleprovider/AspectOnAspectPath.aj b/tests/features153/jdtlikehandleprovider/AspectOnAspectPath.aj new file mode 100644 index 000000000..d111fda02 --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/AspectOnAspectPath.aj @@ -0,0 +1,17 @@ +package pkg; + +public aspect AspectOnAspectPath { + + pointcut p() : call(* *.*(..)) && !within(AspectOnAspectPath); + declare warning: p() : "blah"; + + before() : p() { + } + + pointcut exec() : execution(* *.*(..)) && !within(AspectOnAspectPath); + declare warning : exec() : "blah2"; + before() : exec() { + + } + +} diff --git a/tests/features153/jdtlikehandleprovider/ClassForAspectpath.java b/tests/features153/jdtlikehandleprovider/ClassForAspectpath.java new file mode 100644 index 000000000..c30da9b97 --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/ClassForAspectpath.java @@ -0,0 +1,10 @@ +public class ClassForAspectpath { + + public void foo() { + bar(); + } + + public void bar() { + + } +} diff --git a/tests/features153/jdtlikehandleprovider/DeclareAndInjar.aj b/tests/features153/jdtlikehandleprovider/DeclareAndInjar.aj new file mode 100644 index 000000000..d1b94b9c7 --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/DeclareAndInjar.aj @@ -0,0 +1,9 @@ +public aspect DeclareAndInjar { + + pointcut p() : call(* *.*(..)) && !within(DeclareAndInjar); + declare warning: p() : "warning"; + + pointcut exec() : execution(* *.*(..)) && !within(DeclareAndInjar); + declare error : exec() : "error"; + +} diff --git a/tests/features153/jdtlikehandleprovider/README.txt b/tests/features153/jdtlikehandleprovider/README.txt new file mode 100644 index 000000000..cca1b5254 --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/README.txt @@ -0,0 +1,7 @@ +To regenerate the jars in this directory: + +1. ajc AspectOnAspectPath.aj -outjar jarForAspectPath.jar + +2. ajc DeclareAndInjar.aj -outjar declare.jar + +3. ajc AdviceAndInjar.aj -outjar advice.jar diff --git a/tests/features153/jdtlikehandleprovider/advice.jar b/tests/features153/jdtlikehandleprovider/advice.jar Binary files differnew file mode 100644 index 000000000..7e99367ef --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/advice.jar diff --git a/tests/features153/jdtlikehandleprovider/declare.jar b/tests/features153/jdtlikehandleprovider/declare.jar Binary files differnew file mode 100644 index 000000000..1278b4f11 --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/declare.jar diff --git a/tests/features153/jdtlikehandleprovider/jarForAspectPath.jar b/tests/features153/jdtlikehandleprovider/jarForAspectPath.jar Binary files differnew file mode 100644 index 000000000..bc12b8b31 --- /dev/null +++ b/tests/features153/jdtlikehandleprovider/jarForAspectPath.jar |