diff options
author | avasseur <avasseur> | 2005-12-19 13:32:33 +0000 |
---|---|---|
committer | avasseur <avasseur> | 2005-12-19 13:32:33 +0000 |
commit | a1037edc26d22c437b3b9a399c31938ce063ce29 (patch) | |
tree | 8e3024f13719b705d915d2f9ca3a3ed6507b45f5 /tests/bugs150 | |
parent | 2afe12a528f424404d4c88a0db65602fce78254e (diff) | |
download | aspectj-a1037edc26d22c437b3b9a399c31938ce063ce29.tar.gz aspectj-a1037edc26d22c437b3b9a399c31938ce063ce29.zip |
fix new syntax @decp
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr117681/MoodIndicator.java | 4 | ||||
-rw-r--r-- | tests/bugs150/pr117681/TestAspect.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/bugs150/pr117681/MoodIndicator.java b/tests/bugs150/pr117681/MoodIndicator.java index ec420ad86..c6e47e1f3 100644 --- a/tests/bugs150/pr117681/MoodIndicator.java +++ b/tests/bugs150/pr117681/MoodIndicator.java @@ -23,8 +23,8 @@ public class MoodIndicator { // here is the actual ITD syntax when using @AspectJ // public static is mandatory // the field type must be the introduced interface. It can't be a class. - @DeclareParents("C") - public static Moody introduced = new MoodyImpl(); + @DeclareParents(value="C", defaultImpl=MoodyImpl.class) + Moody introduced; // @Before("execution(* *.*(..)) && this(m)") // public void feelingMoody(Moody m) { diff --git a/tests/bugs150/pr117681/TestAspect.java b/tests/bugs150/pr117681/TestAspect.java index 331677476..9657d6cd5 100644 --- a/tests/bugs150/pr117681/TestAspect.java +++ b/tests/bugs150/pr117681/TestAspect.java @@ -2,6 +2,6 @@ import org.aspectj.lang.annotation.*; @Aspect public class TestAspect { - @DeclareParents("Test") - public static Audit introduced = new AuditImpl(); + @DeclareParents(value="Test", defaultImpl=AuditImpl.class) + Audit introduced; } |