Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.6.1
-
None
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