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

ClassUtils: is subclass incl. primitive-reference equivalents #99

Closed
ljacqu opened this issue Aug 20, 2023 · 0 comments
Closed

ClassUtils: is subclass incl. primitive-reference equivalents #99

ljacqu opened this issue Aug 20, 2023 · 0 comments
Milestone

Comments

@ljacqu
Copy link
Owner

ljacqu commented Aug 20, 2023

ClassUtils#asSubclass should have an overload where primitive types are considered equal to each other. Might also be interesting as a dedicated method returning boolean as it's kind of a gotcha moment.
Important not to equate array types to each other, as int[] and Integer[] cannot be assigned to each other.

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

1 participant