Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
So that we can coerce one object into another, but returning a new object reference in case we need to do some bytecode magic etc
Issue Links
- depends upon
-
GROOVY-2503
MOP 2.0 design inflluencing issues
-
- duplicates
-
GROOVY-960
Change the MetaClass methods to not be bean properties
-
- is related to
-
GROOVY-960
Change the MetaClass methods to not be bean properties
-
I think this is intrinsically a good idea. Changing the MetaClass of a live object in a muti threaded environment is not a healthy thing to do.
A consequence of this (I think) is that all Groovy Objects have to be Clonable so GroovyObject should extend Clonable.
If we are making breaking changes to GroovyObject then we should take the opportunity to align the method signatures of invokeMethod and get/setProperty with the new MOP.
Should we add get/setAttribute?