Remove the assert in Integer.valueOf() (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Mon Apr 30 16:09:16 UTC 2012
- Previous message: Remove the assert in Integer.valueOf()
- Next message: Remove the assert in Integer.valueOf()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 27/04/2012 23:38, Rémi Forax wrote:
: I have moved the assert into the static block of IntegerCache. For Alan, because IntegerCache is loaded when Integer.valueOf() is called the first time the assert code is checked around the same time so after the system init but only once.
webrev is here: http://cr.openjdk.java.net/~forax/integervalueof/ and I need a bug for it :) Looks fine me as the initialization is now different compared to when this property was introduced (when introduced the IntegerCache was initialized via System.initializeSystemClass).
-Alan.
- Previous message: Remove the assert in Integer.valueOf()
- Next message: Remove the assert in Integer.valueOf()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]