Details
Description
Currently, each Groovy class has setMetaClass and getMetaClass methods. This makes it a valid javabean property that requires special handling in automated bean handling features of libraries. Imho it would be a good course of action to replace these methods with:
retrieveMetaClass
provideMetaClass
Issue Links
- depends upon
-
GROOVY-2503
MOP 2.0 design inflluencing issues
-
- is duplicated by
-
GROOVY-1163
refactor void GroovyObject.setMetaClass() {} to something like Object GroovyObject.become(MetaClass) {}
-
- relates to
-
GROOVY-1163
refactor void GroovyObject.setMetaClass() {} to something like Object GroovyObject.become(MetaClass) {}
-
Another option would be to create an unlikely parallel class in bytecode that contains the info, for instance:
MyClass.class and MyClass$0$meta.class
and have no artifact methods in bytecode at all