1 Aug 17:08
[groovy-dev] is this supposed to work?
From: Jochen Theodorou <blackdrag@...>
Subject: [groovy-dev] is this supposed to work?
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-08-01 15:10:42 GMT
Subject: [groovy-dev] is this supposed to work?
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-08-01 15:10:42 GMT
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)
RSS Feed