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

Implement new MetaConstructor and use that instead of java.lang.reflect.Constructor

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0-RC-1, 1.0
    • None
    • groovy-jdk
    • None

    Description

      Abstract constructor invocation inside MetaClassImpl to use MetaConstructor instances like the rest of the MetaClassImpl stuff (MetaBeanProperty, MetaMethod, NewStaticMetaMethod etc.) instead of using java.lang.reflect.Constructor

      java.lang.reflect.Constructor is a final class so you can't subclass it to hook into the existing Groovy MetaClassImpl meaning you have to intercept invokeConstructor to add new methods

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              graemerocher Graeme Rocher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: