You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/01/27 04:32:00 UTC

[jira] [Commented] (GROOVY-8721) Compiling >5k line project with existing output folder with class files in it fails to compile

    [ https://issues.apache.org/jira/browse/GROOVY-8721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16753275#comment-16753275 ] 

Paul King commented on GROOVY-8721:
-----------------------------------

Changing priority until we get a reproducer. It's hard to tell if it's a Groovy or IDEA problem.

> Compiling >5k line project with existing output folder with class files in it fails to compile
> ----------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8721
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8721
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.1
>         Environment: Windows 10 x64
>            Reporter: death lord
>            Priority: Major
>
> Update: Just found out this doesn't happen if you recompile the same 1 file every time
> I'm trying to run my project in IntelliJ IDEA and I have to rebuild every time or I get this error instead. This wasn't the case in 2.4.12. I can't exactly give the project but I can give the stacktrace.
> {code:java}
> Error:Groovyc: While compiling Kismet: BUG! exception in phase 'class generation' in source unit '<source file 1>' JVM class can't be loaded for <source file 2>
>     at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveJvmClass(AsmReferenceResolver.java:88)
>     at org.codehaus.groovy.ast.decompiled.DecompiledClassNode.getTypeClass(DecompiledClassNode.java:176)
>     at org.codehaus.groovy.ast.ClassNode.getTypeClass(ClassNode.java:1359)
>     at org.codehaus.groovy.classgen.asm.BytecodeHelper.getClassInternalName(BytecodeHelper.java:63)
>     at org.codehaus.groovy.classgen.asm.BinaryExpressionHelper.evaluateInstanceof(BinaryExpressionHelper.java:644)
>     at org.codehaus.groovy.classgen.asm.BinaryExpressionHelper.eval(BinaryExpressionHelper.java:275)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitBinaryExpression(AsmClassGenerator.java:707)
>     at org.codehaus.groovy.ast.expr.BinaryExpression.visit(BinaryExpression.java:51)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitBooleanExpression(AsmClassGenerator.java:829)
>     at org.codehaus.groovy.ast.expr.BooleanExpression.visit(BooleanExpression.java:42)
>     at org.codehaus.groovy.classgen.asm.StatementWriter.writeIfElse(StatementWriter.java:292)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitIfElse(AsmClassGenerator.java:651)
>     at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:43)
>     at org.codehaus.groovy.classgen.asm.StatementWriter.writeBlockStatement(StatementWriter.java:93)
>     at org.codehaus.groovy.classgen.asm.sc.StaticTypesStatementWriter.writeBlockStatement(StaticTypesStatementWriter.java:82)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitBlockStatement(AsmClassGenerator.java:635)
>     at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:71)
>     at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:110)
>     at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:121)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitStdMethod(AsmClassGenerator.java:495)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructorOrMethod(AsmClassGenerator.java:431)
>     at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:132)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitMethod(AsmClassGenerator.java:576)
>     at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1103)
>     at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:54)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitClass(AsmClassGenerator.java:269)
>     at org.codehaus.groovy.control.CompilationUnit$18.call(CompilationUnit.java:850)
>     at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
>     at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:631)
>     at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:609)
>     at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:586)
>     at org.jetbrains.groovy.compiler.rt.GroovyCompilerWrapper.compile(GroovyCompilerWrapper.java:62)
>     at org.jetbrains.groovy.compiler.rt.DependentGroovycRunner.runGroovyc(DependentGroovycRunner.java:115)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:497)
>     at org.jetbrains.groovy.compiler.rt.GroovycRunner.intMain2(GroovycRunner.java:134)
>     at org.jetbrains.groovy.compiler.rt.GroovycRunner.intMain(GroovycRunner.java:100)
>     at org.jetbrains.groovy.compiler.rt.GroovycRunner.main(GroovycRunner.java:68)
> Caused by: java.lang.ClassNotFoundException: hlaaftana.kismet.call.KismetCallable
>     at org.jetbrains.groovy.compiler.rt.ClassDependencyLoader.loadClassDependencies(ClassDependencyLoader.java:106)
>     at org.jetbrains.groovy.compiler.rt.DependentGroovycRunner$6.loadClassDependencies(DependentGroovycRunner.java:474)
>     at org.jetbrains.groovy.compiler.rt.ClassDependencyLoader.loadDependencies(ClassDependencyLoader.java:34)
>     at org.jetbrains.groovy.compiler.rt.DependentGroovycRunner$7$1.loadClass(DependentGroovycRunner.java:493)
>     at org.codehaus.groovy.ast.decompiled.AsmReferenceResolver.resolveJvmClass(AsmReferenceResolver.java:86)
>     ... 39 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)