Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6
-
None
-
None
Description
public class ClassProxyMetaClass extends ProxyMetaClass {
ClassProxyMetaClass(MetaClassRegistry metaClassRegistry, Class aClass, MetaClass adaptee)
public Object invokeConstructor(final Object[] arguments)
{ 'constructor' }}
class NewString {
static get()
}
assert '' == new String()
assert '' == NewString.get()
MetaClassRegistry registry = GroovySystem.metaClassRegistry
def mc = new ClassProxyMetaClass(registry, String, registry.getMetaClass(String))
registry.setMetaClass(String, mc)
assert 'constructor' == new String()
assert 'constructor' == NewString.get() // failed here