Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • does no longer extend ParameterTypes and does no longer implement Clonable
  • no protected fields nativeParamTypes, parameterTypes and isVargsMethod
  • the constructor MetaMethod() and MetaMethod(Class[]) are removed and partially replaced by DefaultMetaMethod(Class, String, int, MethodHandle) and DefaultMetaMethod(Class, String, MethodType), which uses the MethodType or the MethodHandle to define the parameter classes
  • coerceArgumentsToClasses(Object[]), correctArguments(Object[]), isValidExactMethod(Class[]), isValidExactMethod(Object[]), isValidMethod(Class[]), isValidMethod(Object[]), isVargsMethod(), isVargsMethod(Object[]) 

    Status
    colourRed
    titleno replacement

  • getNativeParameterTypes()replaced by getParameterClasses()
  • equal(CachedClass[], CachedClass[]), equal(CachedClass[], Class[]), checkParameters(Class[]), clone(), doMethodInvoke(Object, Object[]), getDescriptor()

    Status
    colourRed
    titleno replacement

  • getDeclaringClass(), getModifiers(), getName(), getReturnType(), isAbstract(), isPrivate(), isProtected(), isPublic()isStatic()toString()

    Status
    colourGreen
    titleunchanged

  • getMopName(), getSignature(), invoke(Object, Object[]), isCacheable(), isMethod(MetaMethod), isSame(MetaMethod), processDoMethodInvokeException(Exception, Object, Object[])
    Status
    colourRed
    titleno replacement

groovy.lang.MetaProperty is split into a public interface groovy.mop.MetaProperty and an internal default implementation groovy.mop.internal.DefaultMetaProperty.

Differences to groovy.mop.internal.DefaultMetaProperty:

  • the public static field PROPERTY_SET_PREFIX is removed

    Status
    colourRed
    titleno replacement

  • the protected fields name and type are now private and have to be requested through getName and getType
  • getModifiers(), getName(), getType(), DefaultMetaProperty(String, Class)
    Status
    colourGreen
    titleunchanged
  • getGetterName(String, Class), getSetterName(String)
    Status
    colourRed
    titleno replacement
  • getProperty(Object) replaced by getter(boolean)
  • setProperty(Object, Object) replaced by setter(boolean)

 

The work branch for this: https://github.com/groovy/groovy-core/tree/GROOVY_3_FEATURE