[PATCH] Fix TimeZone.getDefaultDisplayName
Andrew Haley
aph@redhat.com
Tue Feb 27 11:05:00 GMT 2007
Jakub Jelinek writes:
> Hi!
>
> getDefaultDisplayName from the pre-1.4 days was only calling
> getDSTSavings on SimpleTimeZone. But as TimeZone itself now defines
> getDSTSavings(), we can call it always (which fixes a bug when
> getDefaultDisplayName is used on gnu.java.util.ZoneInfo instance).
> Ok to commit?
>
> 2007-02-24 Jakub Jelinek <jakub@redhat.com>
>
> * java/util/TimeZone.java (getDefaultDisplayName): Don't
> check if TimeZone is instanceof SimpleTimeZone.
OK.
Andrew.
More information about the Java-patches
mailing list