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

In NettyRoutingFilter instanceof Number is casted to Integer instead #3007

Closed
gonmmarques opened this issue Jul 20, 2023 · 0 comments · Fixed by #3008
Closed

In NettyRoutingFilter instanceof Number is casted to Integer instead #3007

gonmmarques opened this issue Jul 20, 2023 · 0 comments · Fixed by #3008
Labels
Milestone

Comments

@gonmmarques
Copy link
Contributor

gonmmarques commented Jul 20, 2023

Describe the bug
With the changes introduced here 1c121ef, in particular the getLong() method the cast was changed from Number to Integer however the instanceof checks for Number still.

I noticed this due to a scenario in which I got the following error

An unexpected error occurred: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')

I'm opening as requested here #2581 (comment)

Thanks.

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

Successfully merging a pull request may close this issue.

2 participants