-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
1.3.1, 1.4.0, 5.0
-
generic, x86
-
generic, linux, windows_xp
Name: bsT130419 Date: 10/22/2001
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
GregorianCalendar (and maybe Calendar) needs constructors: GregorianCalendar
(long) and GregorianCalendar(Date). The present constructors initialize ALL
fields with current time, which is a fairly expensive operation and unnecessary
if on is not intereste in the current time. Even (int, int, int) constructors
first initialize using the current time, which is a total waste since fields
are overwritten immediately.
(Review ID: 134160)
======================================================================
- duplicates
-
JDK-4745761 (cal) RFE: Support builder for constructing Calendar
- Resolved