-
Notifications
You must be signed in to change notification settings - Fork 729
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
Insert Null value check if array component type is unknown during compilation time #18259
Insert Null value check if array component type is unknown during compilation time #18259
Conversation
@hzongaro May I ask you to review this change? Thank you! |
…pilation time If the value being stored is NULL and the destination array component is null restricted in runtime, a NPE is expected to throw. Therefore, when the array component type is not known to be identity type in compilation time, a NULLCHK on store value is required. Also add two test cases to test storing NULL into null restricted array, and update the class name in the tests to primitive class to reflect more accurately the type of the class. Signed-off-by: Annabelle Huo <[email protected]>
69f5bd9
to
e050899
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.
Looks good. Thanks!
Jenkins test sanity all jdk17 |
Jenkins test sanity xlinuxval,xlinuxvalst jdknext |
xlinux Valhalla sanity.functional testing and xlinux VT Standard sanity.functional testing appear to have failed due to infrastructure issues. Restarting. Jenkins test sanity xlinuxval,xlinuxvalst jdknext |
sanity.functional testing for aarch64 macOS, Power Linux, x86 Linux, x86 macOS and Windows all appear to have failed due to infrastructure issues. Restarting. Jenkins test sanity amac,plinux,xlinux,xmac,win jdk17 |
openjdknext_j9_sanity.functional_x86-64_linux_vt_standard failed: Looks to be issue #18183
openjdk17_j9_sanity.functional_ppc64le_linux failed failed
|
Only failures are due to known problem. Merging. |
If the value being stored is NULL and the destination array component is null restricted in runtime, a NPE is expected
to throw. Therefore, when the array component type is not known to be identity type in compilation time, a NULLCHK
on store value is required.
Also add two test cases to test storing NULL into null restricted array, and update the class name in the tests to primitive class to reflect more accurately the type of the class.