Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If I create a file RootLoaderHelper.groovy containing this:
class RootLoaderHelper {
RootLoaderHelper()
}
run "groovyc RootLoaderHelper.groovy," then create RootLoaderTest.groovy:
class RootLoaderTest extends GroovyTestCase {
void testRootLoader()
}
and run "groovy RootLoaderHelper.groovy," I get:
java.lang.ClassCastException: gjdk.org.codehaus.groovy.tools.RootLoader_GroovyReflector cannot be cast to org.codehaus.groovy.runtime.Reflector
This works fine if:
- You don't groovyc the helper class
- You use the ant JUnit task to execute the test case, after you've groovyc'd both files.
Attachments
Issue Links
- relates to
-
GROOVY-1923 Can't call any methods on RootLoader
- Closed