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

VerifyError with -- var -- and (var--)--

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.1
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • bytecode
    • None
    • WindowsXP, java 6, Groovy 1.5.1

    Description

      The script

      -- var --
      

      gives

      Caught: java.lang.VerifyError: (class: Script, method: run signature: ()Ljava/lang/Object;) Unable to pop operand off an empty stack
      

      instead of a compilation error.

      The same goes for

      (var--)--
      ++ var ++
      (var++)++
      

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            rene.de.bloois René de Bloois
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: