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

NPE in ClassNode.isDerivedFrom while compiling trait with Groovy 3.0.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.5
    • 4.0.0-alpha-1, 3.0.6, 2.5.15
    • Compiler
    • None
    • Travis CI Ubuntu (also macOS) JDK 9
    • 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

            emilles Eric Milles
            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