AspectWerkz
  1. AspectWerkz
  2. AW-363

Mixin bug for ctor - ordering issue for Intercept package (and more?)

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1-RC1
    • Component/s: transformer
    • Labels:
      None
    • Number of attachments :
      0

      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)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Alexandre Vasseur
            Reporter:
            Alexandre Vasseur
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: