diff options
author | aclement <aclement> | 2009-02-18 22:21:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-02-18 22:21:51 +0000 |
commit | 04ccf76fdb776388dbdef108d69183f01fe8821c (patch) | |
tree | a9f9ac8a26bdd95a7ee6dff48091ff66179d802d /tests/bugs164 | |
parent | b6d5f319a101d120450a6bb6f9d5d2f91b41021c (diff) | |
download | aspectj-04ccf76fdb776388dbdef108d69183f01fe8821c.tar.gz aspectj-04ccf76fdb776388dbdef108d69183f01fe8821c.zip |
265360: test and fix for annotation style references from string pointcuts
Diffstat (limited to 'tests/bugs164')
-rw-r--r-- | tests/bugs164/pr265360/Foo.java | 12 | ||||
-rw-r--r-- | tests/bugs164/pr265360/Main.java | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs164/pr265360/Foo.java b/tests/bugs164/pr265360/Foo.java new file mode 100644 index 000000000..826c0f059 --- /dev/null +++ b/tests/bugs164/pr265360/Foo.java @@ -0,0 +1,12 @@ +package example; +import java.util.Date; +import java.util.List; + +public class Foo { + Date foo() { + return null; + } + List goo() { + return null; + } +} diff --git a/tests/bugs164/pr265360/Main.java b/tests/bugs164/pr265360/Main.java new file mode 100644 index 000000000..25e4ac329 --- /dev/null +++ b/tests/bugs164/pr265360/Main.java @@ -0,0 +1,15 @@ +package example; + +import org.aspectj.lang.annotation.*; + +import java.util.Date; + +@Aspect +public class Main { + @Pointcut("execution(Date foo())") + public void pc() {} + + @Before("pc()") + public void log() {} + +} |