Roshan Dawrani
2010-11-23 14:50:47 UTC
Hi,
Can someone confirm the behavior I am seeing for the code below?
The code below works fine as is, but if I comment out the declaration inside
the method, then it fails saying "Caught: java.lang.ClassFormatError:
Illegal method name "can you figure out what I'm up to?" in class Test1"
---------------------------------------------------------------------------------------
class Test1 {
def "can you figure out what I'm up to?"() {
def name = []
}
}
assert Test1.methods.find{it.name.contains('can you')} != null
---------------------------------------------------------------------------------------
Can someone confirm the behavior I am seeing for the code below?
The code below works fine as is, but if I comment out the declaration inside
the method, then it fails saying "Caught: java.lang.ClassFormatError:
Illegal method name "can you figure out what I'm up to?" in class Test1"
---------------------------------------------------------------------------------------
class Test1 {
def "can you figure out what I'm up to?"() {
def name = []
}
}
assert Test1.methods.find{it.name.contains('can you')} != null
---------------------------------------------------------------------------------------
--
Roshan
http://roshandawrani.wordpress.com/
http://twitter.com/roshandawrani
Roshan
http://roshandawrani.wordpress.com/
http://twitter.com/roshandawrani