Jochen Theodorou | 1 Aug 17:08
Gravatar

[groovy-dev] is this supposed to work?


hi all,

I just tried this script:

>          Integer.metaClass.foo = {->}
>          assert 1.foo() == null
>          Integer.metaClass == null
>          Integer.metaClass.bar = {}
>          assert 1.bar()== null
>          shouldFail(MissingMethodException) {
>              1.foo()
>          }

inside a test case... this is supposed to work, right? Because it looks 
like the 1.foo() still works

bye blackdrag

--

-- 
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

(Continue reading)


Gmane