Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.4
-
None
-
None
Description
It seems we are missing some else's in this method
public static void setAttribute(Object object, String attribute, Object newValue) { if (object instanceof Class) { metaRegistry.getMetaClass((Class) object).setAttribute(object, attribute, newValue); } if (object instanceof GroovyObject) { ((GroovyObject) object).getMetaClass().setAttribute(object, attribute, newValue); } metaRegistry.getMetaClass(object.getClass()).setAttribute(object, attribute, newValue); }