Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JDTClassNode.getTypeClass() throw exception instead of error for catches
BUG! exception in phase 'class generation' in source unit '.../Source.groovy' JDTClassNode.getTypeClass() cannot locate class for foo.bar.Baz using transform loader groovy.lang.GroovyClassLoader@10561854 at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.getTypeClass(JDTClassNode.java:647) at org.apache.groovy.ast.tools.ExpressionUtils.transformInlineConstants(ExpressionUtils.java:252) at org.codehaus.groovy.classgen.Verifier.addFieldInitialization(Verifier.java:1176) at org.codehaus.groovy.classgen.Verifier.addInitialization(Verifier.java:1056) at org.codehaus.groovy.classgen.Verifier.addInitialization(Verifier.java:1007) at org.codehaus.groovy.classgen.Verifier.visitClass(Verifier.java:252) at org.codehaus.groovy.control.CompilationUnit$6.call(CompilationUnit.java:830) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1154) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:658) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:636) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:613) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:214) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.generateCode(GroovyCompilationUnitDeclaration.java:322) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:915) at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:145) at java.lang.Thread.run(Thread.java:748)
- Loading branch information