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:
parent
9d2dc7da92
commit
1889cf4a71
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user