Name: mc57594 Date: 01/29/97
java.util.Calendar has two array members called fields and isSet.
The clone() method simply calls super.clone(), and does not copy the arrays.
This causes the arrays to be aliased. Ergo, all clones shared the same instances
as their progenitor, and are therefore corrupt. GregorianCalendar inherits this bug.
======================================================================
- relates to
-
JDK-4031014 GregorianCalendar.clone() doesn't create separate objects
-
- Closed
-