On Nov 10, 2015, at 10:53 AM, Vladimir Ivanov <vladimir.x.iva...@oracle.com> wrote: > > Regarding the fix, can we avoid touching primitive boxes and lazily cache the > values on Wrapper side? "static final @Stable Object[] zeros" + > Wrapper.zero() indexing that array by Wrapper.ordinal().
I would greatly prefer that. Using "new Integer(x)" is a hack. We hope to deprecate and remove the public constructor some day.