ZhiqiangGao / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 0 forks source link

unary operation (++, --) for float/double type fails #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Parse any one of the following scripts:
"float f; f++"
"float f; ++f"
"float f; f--"
"float f; --f"
"double d; d++"
"double d; ++d"
"double d; d--"
"double d; --d"
2.
3.

What is the expected output? What do you see instead?
Expect no error. Actually throws exception: float unary operation, or double 
unary operation exception.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by verilo...@gmail.com on 7 Nov 2012 at 10:34

GoogleCodeExporter commented 9 years ago
Fixed in bsh.hPrimitive:
    floatUnaryOperation
    doubleUnaryOperation

Original comment by verilo...@gmail.com on 7 Nov 2012 at 10:39