This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Fix TimeZone.getDefaultDisplayName
- From: Andrew Haley <aph at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 27 Feb 2007 11:05:21 +0000
- Subject: Re: [PATCH] Fix TimeZone.getDefaultDisplayName
- References: <20070224165401.GB20760@devserv.devel.redhat.com>
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.