-
Notifications
You must be signed in to change notification settings - Fork 740
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
Check flattenable value types and if Q signature is supported #17447
Check flattenable value types and if Q signature is supported #17447
Conversation
@hzongaro May I ask you to review this change? Thank you!
|
Just a heads up. I found a few more places in the following files that require the checking on if Q signature is supported or not. However, any change in the current commit b39fe6e is still good for review
|
b39fe6e
to
857d60f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments, possibly for discussion
- `areFlattenableValueTypesEnabled`: Whether or not flattenable value object (aka null restricted) type is enabled - `isQDescriptorForValueTypesSupported`: Whether or not `Q` signature is supported - Update `isValueTypeArrayFlatteningEnabled` to check `areFlattenableValueTypesEnabled` first Signed-off-by: Annabelle Huo <[email protected]>
857d60f
to
c4346cc
Compare
@hzongaro all comments are addressed. Ready for another review. Thanks! |
- Check `areFlattenableValueTypesEnabled` before checking if element is flattened - Check if Q signature is supported or not before using Q signature to determine if the element is a value type. - Remove special handling on checking primitive value type in `genCheckcast` and disable `testCheckCastValueTypeOnNull` since the latest spec doesn't require special handling on null restricted value types. Signed-off-by: Annabelle Huo <[email protected]>
c4346cc
to
156b344
Compare
@hzongaro all comments are addressed. Ready for another review. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Jenkins test sanity all jdk11,jdk17 |
Jenkins test sanity,extended xlinuxval jdknext |
|
Jenkins test sanity osx jdk17 |
Testing has passed, and review was completed. Merging. |
areFlattenableValueTypesEnabled
before checking if element is flattenedQ
signature is supported or not before usingQ
signature to determine if the element is a value typeQ
signature is supported andQ
signature is not supported. This change does not handle the case whereQ
signature is not supported. At the moment as long as flattenable value types are enabled,Q
signature is still supportedgenCheckcast
and disabletestCheckCastValueTypeOnNull
since the latest spec doesn't require special handling on null restricted value types.