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 <Annabelle.Huo@ibm.com>
69f5bd9 to
e050899
Compare
|
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.