[lworld] RFR: 8281073: [lworld] Update MethodHandles::zero, empty, constant APIs for primitive classes [v2]

Roger Riggs rriggs at openjdk.java.net
Thu Feb 10 20:52:30 UTC 2022


On Thu, 10 Feb 2022 18:13:25 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> The `MethodHandles::zero` and `MethodHandles::empty` APIs are updated to return a primitive object with the default value if the given type is a primitive value type. These methods return null if the given type is a value class and a primitive reference type.
>> 
>> The MethodHandles::constant method will throw `NullPointerException` if the given type is a primitive value type and the given value is null.   That's the same behavior as the `int` type but such case is missing in the spec.
>
> Mandy Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix typo

Marked as reviewed by rriggs (Committer).

-------------

PR: https://git.openjdk.java.net/valhalla/pull/644



More information about the valhalla-dev mailing list