CDV ❯ Mixins + Advisable: preparing constructors causes error
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Won't Fix
-
X-AspectWerkz
-
-
drb
-
Reporter: jboner
-
May 30, 2006
-
0
-
Watchers: 0
-
July 27, 2012
-
May 11, 2009
Description
Advisable: preparing constructors causes error - ordering issue since: JP accesses field in target that is init in ctor that has not yet been called since called from JP
causes NPE, but now only occurs in the proxy impl when used together with intercept impl.
might be other issues with regular mixin use as well, don’t know now it seems to happen only when you tweak the definition
See comment is DocumentParser line: 1138 /* DefinitionParserHelper.createAndAddAdvisableDef( // TODO add ctor to expression - BUT: problem with mixin and ctor, ordering issue, Jp.invoke() calls field instance that has not been init yet in ctor (since body not invoked) “(execution(!static * .(..)) && “ + withinPointcut + ‘)’, definition ); */
fix this code when issue solved (along with the other TODOs in the same method)