Peter Gromov created GROOVY-8047: ------------------------------------ Summary: Unclear "unable to resolve" message due to classloader resolution Key: GROOVY-8047 URL: https://issues.apache.org/jira/browse/GROOVY-8047 Project: Groovy Issue Type: Improvement Reporter: Peter Gromov
Suppose that you have a.jar containing class-file for the following class {code:title=A.java} package xxx; public class A {} {code} and b.jar containing class-file for the following class {code:title=B.java} package xxx; public class B extends A { } {code} If you add only b.jar to the classpath and refer to 'B' in your Groovy file: {code:title=Gr.groovy} import xxx.B class Gr { B b } {code} Compilation will fail with the following error: > unable to resolve class xxx.B It isn't evident that you need to add a.jar to the classpath to fix the problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)