JDK-4931256 : Boxed primitive types should cache common values
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2003-10-01
  • Updated: 2004-07-28
  • Resolved: 2004-07-28
Related Reports
Relates :  
Description
The boxed primitive types should cache commonly-requested values for use in
the static factories.

Comments
EVALUATION A reasonable optimization to consider. Presumably small integers will be the most important to box. Benchmarks showing value distribution would be helpful. ###@###.### 2003-10-23 Such caches were implemented to adhere to the autoboxing specification; see bug 4990346 "wrapper static factories fail to cache as required." ###@###.### 2004-07-27
23-10-2003