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

Closure problem in JSR-02 which was fine under JSR-01

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-1, 1.0-JSR-2
    • Fix Version/s: 1.0-JSR-3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP; JDK 1.5-02; Groovy JSR-01 and JSR-02

      Description

      NullPointerException raised with closure code in JSR-02 but which runs on JSR-01.

      In the attached code a NullPointerException is raised when using JSR-02.
      The same code runs correctly under JSR-01.

      Replacing lines A and B with the counterparts C and D then operates correctly.
      The problem appears to be the closure twelveTimes created by currying the composition
      closure.

        Attachments

        1. bug04.groovy
          0.6 kB
          Kenneth Bell

          Activity

            People

            • Assignee:
              phkim Kim, Pilho
              Reporter:
              kenb Kenneth Bell
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: