aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/TypeDeclInAdvice.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/TypeDeclInAdvice.java')
-rw-r--r--tests/new/TypeDeclInAdvice.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/new/TypeDeclInAdvice.java b/tests/new/TypeDeclInAdvice.java
index e39d3421e..b436c6e95 100644
--- a/tests/new/TypeDeclInAdvice.java
+++ b/tests/new/TypeDeclInAdvice.java
@@ -10,7 +10,7 @@ public class TypeDeclInAdvice {
}
aspect A {
- void around(): this(Foo) && call(void m(..)) {
+ void around(): target(Foo) && call(void m(..)) {
class Internal {
int val() { return 1; }
}
@@ -20,6 +20,7 @@ aspect A {
i = 1;
j = new Internal();
+ System.out.println("Advice running");
proceed();
//System.out.println("j: " + j);