Valhalla changes the primitive wrapper classes from identity classes to value classes. As values, the cached small values in Byte, Short, Character, Integer, and Long are no longer valuable and should be removed.
The specification needs to be changed to remove the guarantee about caching small values.
The specification needs to be changed to remove the guarantee about caching small values.
- relates to
-
JDK-4990346 wrapper static factories fail to cache as required
-
- Resolved
-