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

Static compiler fails on constructors with initializers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2, 2.3.1
    • 2.4.0-rc-1
    • Static compilation
    • None

    Description

      @groovy.transform.CompileStatic
      class Test {
          Test(InetAddress bindTo = InetAddress.getByName("localhost")) { }
      }
      

      Fails with NPE in the compiler

      Attachments

        Activity

          People

            Unassigned Unassigned
            ddimitrov Dimitar Dimitrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: