Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
The static factory methods Integer.valueOf(int), Long.valueOf(long), etc. were introduced in JDK 5 for javac to implement the caching behavior required by the autoboxing specification. While the specification of those methods say they might cache, they do not require caching of the ranges in question. The specification should be updating to require caching of the boxing range, but clearly state that caching outside of that range may or may not happen.
|