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

With the command "groovy <filename>", a FileNotFoundException has been expected, but a NullPointException is generated.

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-2
    • 1.0-JSR-2
    • None
    • None

    Description

      This is an issue for the current JSR-02 CVS Head.

      There does not exist the file "foo.groovy" in the current directory.
      But I have used the command:

      $ groovy foo.groovy
      Caught: java.lang.NullPointerException

      I have tested the above command with Groovy 1.0 JSR-01.

      $ groovy foo.groovy
      Caught: java.io.FileNotFoundException: foo.groovy

      I think that error message, generated by JSR-02 CVS HEAD, should be the same one as the message generated by JSR-01.

      Attachments

        Activity

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

          People

            blackdrag Jochen Theodorou
            phkim Kim, Pilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment