Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3466

MetaClassCreationHandle.create() should not be final

    XMLWordPrintableJSON

Details

    Description

      groovy.runtime.metaclass.MetaClassRegistryImpl checks for a custom class "groovy.runtime.metaclass.CustomMetaClassCreationHandle" which, if defined, allows the developer to override MetaClassRegistry.MetaClassCreationHandle with a custom class.

      The custom class must subclass MetaClassCreationHandle, however the only method worth subclassing (create()) is declared as final, thus breaking this functionality.

      In summary - groovy/lang/MetaClassRegistry.java line 116 - the method create() should not be final

      Attachments

        Activity

          People

            ait Alex Tkachman
            zoomzoom83 James Davies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: