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 2020/09/16 09:47:00 UTC
[jira] [Resolved] (GROOVY-9739) NPE in ClassNode.isDerivedFrom
while compiling trait with Groovy 3.0.5
[ https://issues.apache.org/jira/browse/GROOVY-9739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King resolved GROOVY-9739.
-------------------------------
Fix Version/s: 3.0.6
4.0.0-alpha-1
Resolution: Fixed
Proposed PR merged, thanks!
> NPE in ClassNode.isDerivedFrom while compiling trait with Groovy 3.0.5
> ----------------------------------------------------------------------
>
> Key: GROOVY-9739
> URL: https://issues.apache.org/jira/browse/GROOVY-9739
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 3.0.5
> Environment: Travis CI Ubuntu (also macOS) JDK 9
> Reporter: Sean Gilligan
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-alpha-1, 3.0.6
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Compiler crashes in Gradle build with Groovy 3.0.5. Works with Groovy 3.0.4.
> Caused by: java.lang.NullPointerException
> at org.codehaus.groovy.ast.ClassNode.isDerivedFrom(ClassNode.java:909)
> at org.codehaus.groovy.ast.tools.WideningCategories.implementsInterfaceOrSubclassOf(WideningCategories.java:733)
> at org.codehaus.groovy.classgen.AsmClassGenerator.visitCastExpression(AsmClassGenerator.java:799)
> at org.codehaus.groovy.ast.expr.CastExpression.visit(CastExpression.java:85)
> Fails with both JDK 8 and JDK 9, see Travis CI jobs:
> Failure: [https://travis-ci.org/github/ConsensusJ/consensusj/jobs/716458220]
> Success: https://travis-ci.org/github/ConsensusJ/consensusj/builds/726709254
--
This message was sent by Atlassian Jira
(v8.3.4#803005)