Hi,

I use groovy 2.4.13 and i found during static compilation, some of classes
or libraries from class path is loading by jvm.
In my mind it is incorrect loading any class or libraries from classpath by
classloader.
Is it known issue ? If yes , is it fixed in any version ?

Stack trace :

Caused by: java.lang.NoClassDefFoundError: Unable to load class
mypack.Myclass
at org.codehaus.groovy.vmplugin.v5.Java5.configureClassNode(Java5.java:429)
at org.codehaus.groovy.ast.ClassNode.lazyClassInit(ClassNode.java:360)
at
org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:1124)

at
org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:1114)

at org.codehaus.groovy.ast.ClassNode.getSuperClass(ClassNode.java:1108)
at org.codehaus.groovy.ast.ClassNode.isDerivedFrom(ClassNode.java:1046)
at
org.codehaus.groovy.control.CompilationUnit$19.getCommonSuperClassNode(CompilationUnit.java:898)

at
org.codehaus.groovy.control.CompilationUnit$19.getCommonSuperClass(CompilationUnit.java:911)

at groovyjarjarasm.asm.ClassWriter.a(Unknown Source)
at groovyjarjarasm.asm.Frame.a(Unknown Source)
at groovyjarjarasm.asm.Frame.a(Unknown Source)
at groovyjarjarasm.asm.MethodWriter.visitMaxs(Unknown Source)
at
org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructorOrMethod(AsmClassGenerator.java:419)

at
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:170)

at
org.codehaus.groovy.classgen.AsmClassGenerator.visitMethod(AsmClassGenerator.java:538)

at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1201)
at
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:56)

at
org.codehaus.groovy.classgen.AsmClassGenerator.visitClass(AsmClassGenerator.java:260)

at
org.codehaus.groovy.control.CompilationUnit$6.call(CompilationUnit.java:847)

at
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1129)

Nik

Reply via email to