Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2503 MOP 2.0 design inflluencing issues
  3. GROOVY-2826

Constructor interception not working when property map used in construction

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6-beta-1
    • None
    • groovy-runtime
    • None
    • Mac OS X

    Description

      I intercepted the constructor of a class using EMC. The interception works when I create an instance of the class using the default no-argument constructor (the class has no constructor written explicitly). However, the injection does not work if I use maps to assign values to properties during construction. Please refer to the attached test.

      Attachments

        1. test.groovy
          0.4 kB
          Venkat Srinivasan

        Activity

          People

            Unassigned Unassigned
            venkats Venkat Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: