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

Cast throws exception #725

Open
opeongo opened this issue Feb 22, 2023 · 4 comments
Open

Cast throws exception #725

opeongo opened this issue Feb 22, 2023 · 4 comments

Comments

@opeongo
Copy link
Contributor

opeongo commented Feb 22, 2023

BeanShell 3.0.0-SNAPSHOT.5569
bsh % o = Double.valueOf(1);
--> $0 = 1.0d :Double
bsh % oo = (Number) o;
// Error: Unknown error: java.lang.ClassCastException: class java.lang.Double cannot be cast to class bsh.Primitive (java.lang.Double is in module java.base of loader 'bootstrap'; bsh.Primitive is in unnamed module of loader 'app')
bsh % 
@opeongo
Copy link
Contributor Author

opeongo commented Feb 27, 2023

Submitted pr #729 for this issue

@nickl-
Copy link
Member

nickl- commented Apr 1, 2023

Happy with the solution at #729 this issue can be closed.

@nickl- nickl- closed this as completed Apr 1, 2023
@opeongo
Copy link
Contributor Author

opeongo commented May 29, 2023

Closed but not merged? Could you please go ahead and do the merge?

Especially the test case

@opeongo opeongo reopened this May 29, 2023
@epaterlini
Copy link

Hello, any news on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants