JDK 11 RFR of 8200478: For boxing conversion javac uses Long.valueOf which does not guarantee caching according to its javadoc
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Apr 25 00:41:33 UTC 2018
Hi Joe,
On Apr 24, 2018, at 5:30 PM, joe darcy <joe.darcy at oracle.com> wrote:
> Please review the patch below to update the specification of Long.valueOf(long) to require caching on [-128, 127]. The JDK implementation of this functionality has always cached in that region, even though it is not required.
Looks fine.
> Additionally, please review the corresponding CSR:
>
> JDK-8202231: For boxing conversion javac uses Long.valueOf which does not guarantee caching according to its javadoc
Done.
Brian
More information about the core-libs-dev
mailing list