RFR(XS): 8155244 - JVMCI: MemoryAccessProvider.readUnsafeConstant javadoc should be updated for null JavaKind case

Christian Thalinger christian.thalinger at oracle.com
Thu Apr 28 19:25:25 UTC 2016


+     * @throws IllegalArgumentException if {@code kind} is {@code null}, {@code kind} is {@link JavaKind#Void} or
+     *             not {@linkplain JavaKind#isPrimitive() primitive} kind
I don’t think you have to repeat {@code kind}.

> On Apr 28, 2016, at 6:39 AM, Dmitrij Pochepko <dmitrij.pochepko at oracle.com> wrote:
> 
> Hi,
> 
> please review changes for 8155244 - JVMCI: MemoryAccessProvider.readUnsafeConstant javadoc should be updated for null JavaKind case
> 
> MemoryAccessProvider.readUnsafeConstant method implementation throws NullPointerException in case JavaKind is null. Such behavior wasn't specified in javadoc.
> So, a small fix contains logic to throw IllegalArgumentException and respective javadoc update.
> 
> CR: https://bugs.openjdk.java.net/browse/JDK-8155244
> webrev: http://cr.openjdk.java.net/~dpochepk/8155244/webrev.01/
> 
> I've tested fix on linux_x64 via jprt.
> 
> Thanks,
> Dmitrij

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160428/ad22a254/attachment-0001.html>


More information about the hotspot-compiler-dev mailing list