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

NPE during compilation because of constant optimization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.4.0-rc-1
    • 2.4.0-rc-2
    • Static compilation
    • None

    Description

      The following code produces a compile-time NPE, making it impossible to compile a project:

      @groovy.transform.CompileStatic
      void foo() {
        Double d = null
      }
      
      foo()
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: