groovy

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
  • Component/s: bytecode
  • Labels:
    None
  • Environment:
    WindowsXP, java 6, Groovy 1.5.1
  • Number of attachments :
    0

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++)++

Activity

Hide
Guillaume Laforge added a comment -

Already fixed in 1.6-beta-2, but still needs a test case to be able to close the issue.

Show
Guillaume Laforge added a comment - Already fixed in 1.6-beta-2, but still needs a test case to be able to close the issue.
Hide
Guillaume Laforge added a comment -

I added further tests, so we can now close the issue.

Show
Guillaume Laforge added a comment - I added further tests, so we can now close the issue.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: