-
Notifications
You must be signed in to change notification settings - Fork 733
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
Unexpected result for Class.isInstance() given nullable array instance and non-nullable array class #20305
Comments
Issue Number: 20305 |
Thanks @hzongaro I opened a change to fix this. I think it would be useful to have some checkcast tests for arrays as well since my change will impact that as well, I will write those later this week. |
At the suggestion of @jdmpapin, I also tried a variation of this test using |
Thanks! I believe my changes will fix Class.isAssignableFrom as well. |
I think the only way to do this right now is with the CheckedType api which is not supported yet #19764 |
Issue Number: 20305 |
Given the class of a non-nullable array and a nullable array instance the
Class.isInstance()
method for the OpenJ9 value types prototype implementation yields a different result from that of the Reference Implementation. For the following test:OpenJ9 yields:
while the Reference Implementation yields:
@theresa-m, @hangshao0, @a7ehuo - FYI
The text was updated successfully, but these errors were encountered: