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

TypeChecker: Fails with NPE when use generics in inheritance tree?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.0-rc-3
    • 2.1.0
    • None
    • None

    Description

      Not sure the exact way to reproduce this. It is occuring in an inheritance tree in the Grails codebase.

      Exception trace is:

      [ant:groovyc] java.lang.NullPointerException
      [ant:groovyc] 	at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.inferReturnT
      [ant:groovyc] ypeGenerics(StaticTypeCheckingVisitor.java:3098)
      [ant:groovyc] 	at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.inferReturnType
      [ant:groovyc] Generics(StaticTypeCheckingVisitor.java:3002)
      [ant:groovyc] 	at org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.visitMethodCallExp
      [ant:groovyc] ression(StaticTypeCheckingVisitor.java:2054)
      [ant:
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: