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
hzongaro
left a comment
There was a problem hiding this comment.
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 <Annabelle.Huo@ibm.com>
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 <Annabelle.Huo@ibm.com>
c4346cc to
156b344
Compare
|
@hzongaro all comments are addressed. Ready for another review. Thanks! |
|
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. |
areFlattenableValueTypesEnabledbefore checking if element is flattenedQsignature is supported or not before usingQsignature to determine if the element is a value typeQsignature is supported andQsignature is not supported. This change does not handle the case whereQsignature is not supported. At the moment as long as flattenable value types are enabled,Qsignature is still supportedgenCheckcastand disabletestCheckCastValueTypeOnNullsince the latest spec doesn't require special handling on null restricted value types.