[9] RFR 8149472: NPE when executing HotSpotConstantReflectionProvider::constantEquals with null first arg

Doug Simon doug.simon at oracle.com
Wed Feb 10 19:32:01 UTC 2016


> On 10 Feb 2016, at 19:00, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
> 
> Good. I assume that NULL is valid case in this test. Right?

Yes, null is ok for either x or y in this method.

> 
> Thanks,
> Vladimir
> 
> On 2/10/16 3:20 AM, Konstantin Shefov wrote:
>> Hello
>> 
>> Please review a bug fix in JVMCI jdk.vm.ci.hotspot.HotSpotConstantReflectionProvider::constantEquals(Constant x,
>> Constant y) method.
>> 
>> A NullPointerException is thrown, when one calls this method with the first argument x equal to null.
>> 
>> Additional check should be added for null as the first argument.
>> 
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8149472
>> Webrev: http://cr.openjdk.java.net/~kshefov/8149472/webrev.00/
>> 
>> Thanks
>> -Konstantin
>> 



More information about the hotspot-compiler-dev mailing list