[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-scm
Subject:    [jira] Commented: (GROOVY-1163) refactor void GroovyObject.setMetaClass() {} to something like Objec
From:       "John Wilson (JIRA)" <jira () codehaus ! org>
Date:       2005-11-29 17:45:06
Message-ID: 143640143.1133286306220.JavaMail.haus-jira () codehaus01 ! managed ! contegix ! com
[Download RAW message or body]

    [ http://jira.codehaus.org/browse/GROOVY-1163?page=comments#action_52327 ] 

John Wilson commented on GROOVY-1163:
-------------------------------------

I think the method signature should be GeoovyObject become(MetaClass) 

i.e. it us guaranteed to return a GroovyObject not just an Object


> refactor void GroovyObject.setMetaClass() {} to something like Object \
>                 GroovyObject.become(MetaClass) {}
> -------------------------------------------------------------------------------------------------------
>  
> Key: GROOVY-1163
> URL: http://jira.codehaus.org/browse/GROOVY-1163
> Project: groovy
> Type: New Feature
> Reporter: james strachan
> Assignee: Guillaume Laforge

> 
> 
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic