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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-1, 1.0-JSR-2
    • 1.0-JSR-3
    • None
    • None
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment