diff options
author | aclement <aclement> | 2008-06-10 03:29:06 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-10 03:29:06 +0000 |
commit | 0f9681ba755a272e41fff04c8f57be985f0c9824 (patch) | |
tree | ac07eaab3dc39a08c154325de7eeea03911bbd84 /tests | |
parent | 6d5e37c5e3c9664bd0c20c83233bf2af581b54fd (diff) | |
download | aspectj-0f9681ba755a272e41fff04c8f57be985f0c9824.tar.gz aspectj-0f9681ba755a272e41fff04c8f57be985f0c9824.zip |
174385: testcode, almost working
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs161/pr174385/StaticFinalStringInPointcutAspect.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs161/pr174385/StaticFinalStringInPointcutAspect.java b/tests/bugs161/pr174385/StaticFinalStringInPointcutAspect.java new file mode 100644 index 000000000..af15cbf50 --- /dev/null +++ b/tests/bugs161/pr174385/StaticFinalStringInPointcutAspect.java @@ -0,0 +1,23 @@ +package bug; + +import org.aspectj.lang.annotation.*; + +@Aspect +public class StaticFinalStringInPointcutAspect { + static final String pcExpression = "within(*)"; + + @Pointcut(pcExpression) + public void pointcutThatUsesStaticFinalStringAsExpression() {} + + @Before("pointcutThatUsesStaticFinalStringAsExpression() && execution(* foo(..))") + public void m() { + System.out.println("advice"); + } + + public void foo() { + } + + public static void main(String[] args) { + new StaticFinalStringInPointcutAspect().foo(); + } +} |