Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9739

NPE in ClassNode.isDerivedFrom while compiling trait with Groovy 3.0.5

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.5
    • Fix Version/s: 4.0.0-alpha-1, 3.0.6
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Travis CI Ubuntu (also macOS) JDK 9
    • Flags:
      Important

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              emilles Eric Milles
              Reporter:
              msgilligan Sean Gilligan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m