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

VerifyError on when a syntax error would be more appropriate

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.7
    • 1.5.8
    • None
    • None
    • Groovy Version: 1.5.7 JVM: 1.6.0_11
      win xp sp 2

    Description

      C:\>groovy -e "(i++)++"
      Caught: java.lang.VerifyError: (class: script_from_command_line, method: run signature: ()Ljava/lang/Object;) 
      Unable to pop operand off an empty stack
      

      In Java this is not a valid expression, but w/ overloadable operators in Groovy I guess it should be? In any case, VerifyError is not the appropriate thing to do - if this expression is not valid, some sort of syntax error might be better and more informative?

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            antti.karanta@napa.fi Antti Karanta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment