Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] @DeclareParents

The syntax for @DeclareParents changed slightly in the AspectJ 5 release. I can't get the example to compile... The first two hurdles are minor:
o 'defaultImpl="MoodyImpl"' should be 'defaultImpl=MoodyImpl.class'
o 'void feelingMoody(Moody m) {' should be 'public void feelingMoody(Moody m) {'

However, having made the changes, the compilation fails because 'defaultImpl="MoodIndicator$MoodyImpl" has no public no-arg constructor'. I've tried a number of things, but can't get beyond this...

Ideas?


Back to the top