GregorianCalendar.java (GregorianCalendar): Constructors need to set timezone to a valid non-null value.

* java/util/GregorianCalendar.java (GregorianCalendar): Constructors
	need to set timezone to a valid non-null value.  Partial fix for
	PR 331.

From-SVN: r38375
This commit is contained in:
Warren Levy 2000-12-19 07:48:54 +00:00 committed by Warren Levy
parent 9d2dc7da92
commit 1889cf4a71
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2000-12-18 Warren Levy <warrenl@redhat.com>
* java/util/GregorianCalendar.java (GregorianCalendar): Constructors
need to set timezone to a valid non-null value. Partial fix for
PR 331.
2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
* java/awt/Window.java (addNotify): Remove peer casting hack now that

View File

@ -114,7 +114,7 @@ public class GregorianCalendar extends Calendar {
public GregorianCalendar (int year, int month, int date)
{
this((TimeZone) null);
this();
setDefaultTime ();
set (year, month, date);
}
@ -122,7 +122,7 @@ public class GregorianCalendar extends Calendar {
public GregorianCalendar (int year, int month, int date,
int hour, int minute)
{
this((TimeZone) null);
this();
setDefaultTime ();
set (year, month, date, hour, minute);
}
@ -130,7 +130,7 @@ public class GregorianCalendar extends Calendar {
public GregorianCalendar (int year, int month, int date,
int hour, int minute, int second)
{
this((TimeZone) null);
this();
setDefaultTime ();
set (year, month, date, hour, minute, second);
}