diff options
author | Elliott Hughes <enh@google.com> | 2010-02-05 17:36:23 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-02-05 17:54:25 -0800 |
commit | 18aa2ce5993b2f06e1d4d60c90d92fe4650b1d75 (patch) | |
tree | 8d38d8d1ac14dd30513564c44030cc915ca87552 /NOTICE | |
parent | dd8f7b397241d54ae9d273ab25b888ea153e5454 (diff) | |
download | libcore-18aa2ce5993b2f06e1d4d60c90d92fe4650b1d75.tar.gz |
Fix a bug I introduced to SimpleTimeZone with my Calendar.setTimeZone fix.
Our implementations of SimpleTimeZone and Calendar became mutually recursive
for custom time zones when I changed GregorianCalendar.computeFields to use
TimeZone.inDaylightTime --- SimpleTimeZone's implementation of inDaylightTime
creates a GregorianCalendar leading to a stack overflow looking something
like this...
at java.util.SimpleTimeZone.inDaylightTime(SimpleTimeZone.java:599)
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:595)
at java.util.Calendar.complete(Calendar.java:819)
at java.util.Calendar.setTimeInMillis(Calendar.java:1319)
at java.util.GregorianCalendar.<init>(GregorianCalendar.java:339)
at java.util.GregorianCalendar.<init>(GregorianCalendar.java:325)
at java.util.SimpleTimeZone.inDaylightTime(SimpleTimeZone.java:599)
I've cut the knot by introducing "Grego" from ICU4J, and rewriting our
SimpleTimeZone.inDaylightTime in the style of ICU4J's implementation.
Maybe we'll be using the ICU4J calendar implementation sooner than I thought!
Diffstat (limited to 'NOTICE')
-rw-r--r-- | NOTICE | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. == NOTICE file for the ICU License. == ========================================================================= -Copyright (c) 1995-2006 International Business Machines Corporation and others +Copyright (c) 1995-2009 International Business Machines Corporation and others All rights reserved. |