Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.7
-
Fix Version/s: 1.5.8
-
Component/s: None
-
Labels:None
-
Environment:Groovy Version: 1.5.7 JVM: 1.6.0_11
win xp sp 2
-
Number of attachments :
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?
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| 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? |
{code} 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 {code} 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? |
Antti Karanta
made changes -
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 1.5.8 [ 14630 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |