Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-5
-
Fix Version/s: 1.0-JSR-6
-
Component/s: groovy-jdk
-
Labels:None
-
Number of attachments :
Description
When loading a class through the GroovyClassLoader the actual class which is not found is hidden when a ClassNotFoundException occurs in a parent class.
I discovered this in grails when loading test cases. Test cases extend GroovyTestCase the exception thrown is:
ClassNotFoundException: GroovyTestCase
But the actual reason was that junit.jar was not on the classpath and hence GroovyTestCase could not be loaded as it referenced the junit classes.
This is very mysterious and difficult to debug and needs fixing
any suggestion how to write a testcase for that?