Friday, March 19, 2010

So easy, you just call your Java code from Groovy!

This is total crap. There are several cases where it just doesn't work, but my favorite is this runtime exception (well, we're using Groovy, what did you expect) that looks like this, "org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String"... right right. So what should I do? I guess I'll have to go in and hack up my Java code with .toString() methods?

No comments: