Browse Source

fix new syntax @decp

tags/POST_MEMORY_CHANGES
avasseur 18 years ago
parent
commit
a1037edc26

+ 2
- 2
tests/bugs150/pr117681/MoodIndicator.java View File

@@ -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) {

+ 2
- 2
tests/bugs150/pr117681/TestAspect.java View File

@@ -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;
}

Loading…
Cancel
Save