Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 1 comment
Closed

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

GoogleCodeExporter opened this issue Apr 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 7 Nov 2012 at 10:34

@GoogleCodeExporter
Copy link
Author

Fixed in bsh.hPrimitive:
    floatUnaryOperation
    doubleUnaryOperation

Original comment by [email protected] on 7 Nov 2012 at 10:39

  • Changed state: Fixed

nickl- added a commit to beanshell/beanshell that referenced this issue Nov 8, 2017
Merge pejobo/beanshell2@da29288 fix for pejobo/beanshell2#82 unary operation (++/--) fails on float/double type.
nickl- added a commit to beanshell/beanshell that referenced this issue Jan 7, 2019
Merge pejobo/beanshell2@da29288 fix for pejobo/beanshell2#82 unary operation (++/--) fails on float/double type.
nickl- added a commit to beanshell/beanshell that referenced this issue Jan 7, 2019
Merge pejobo/beanshell2@da29288 fix for pejobo/beanshell2#82 unary operation (++/--) fails on float/double type.
nickl- added a commit to beanshell/beanshell that referenced this issue Mar 19, 2019
Merge pejobo/beanshell2@da29288 fix for pejobo/beanshell2#82 unary operation (++/--) fails on float/double type.
patniemeyer pushed a commit to beanshell/beanshell that referenced this issue Dec 6, 2023
Merge pejobo/beanshell2@da29288 fix for pejobo/beanshell2#82 unary operation (++/--) fails on float/double type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant