Imported GNU Classpath 0.90

Imported GNU Classpath 0.90
       * scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.

       * sources.am: Regenerated.
       * gcj/javaprims.h: Regenerated.
       * Makefile.in: Regenerated.
       * gcj/Makefile.in: Regenerated.
       * include/Makefile.in: Regenerated.
       * testsuite/Makefile.in: Regenerated.

       * gnu/java/lang/VMInstrumentationImpl.java: New override.
       * gnu/java/net/local/LocalSocketImpl.java: Likewise.
       * gnu/classpath/jdwp/VMMethod.java: Likewise.
       * gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
       interface.
       * java/lang/Thread.java: Add UncaughtExceptionHandler.
       * java/lang/reflect/Method.java: Implements GenericDeclaration and
       isSynthetic(),
       * java/lang/reflect/Field.java: Likewise.
       * java/lang/reflect/Constructor.java
       * java/lang/Class.java: Implements Type, GenericDeclaration,
       getSimpleName() and getEnclosing*() methods.
       * java/lang/Class.h: Add new public methods.
       * java/lang/Math.java: Add signum(), ulp() and log10().
       * java/lang/natMath.cc (log10): New function.
       * java/security/VMSecureRandom.java: New override.
       * java/util/logging/Logger.java: Updated to latest classpath
       version.
       * java/util/logging/LogManager.java: New override.

From-SVN: r113887
This commit is contained in:
Mark Wielaard 2006-05-18 17:29:21 +00:00
parent eaec4980e1
commit 4f9533c772
1640 changed files with 126485 additions and 104808 deletions

View file

@ -59,13 +59,13 @@ public class SpinnerDateModel extends AbstractSpinnerModel
private Calendar date;
/**
* The start or earliest permitted date (<code>null</code> for no
* minimum).
* A constraint on the start or earliest permitted date (<code>null</code>
* for no minimum).
*/
private Comparable start;
/**
* The end or latest permitted date (<code>null</code> for no
* A constraint on the end or latest permitted date (<code>null</code> for no
* maximum).
*/
private Comparable end;
@ -77,7 +77,6 @@ public class SpinnerDateModel extends AbstractSpinnerModel
/**
* For compatability with Sun's JDK
* FIXME: Which fields should be serialized?
*/
private static final long serialVersionUID = -4802518107105940612L;
@ -92,23 +91,30 @@ public class SpinnerDateModel extends AbstractSpinnerModel
}
/**
* Constructs a SpinnerDateModel which spins a given calendar field,
* using a given date and start and end date limits.
* @param value - the initial Date value
* @param start - start limit, as a Date object, or <code>null</code>
* for no lower limit.
* @param end - end limit, or <code>null</code> for no upper limit.
* @param calendarField - the <code>Calendar</code> field to spin,
* (Calendar.ZONE_OFFSET and Calendar.DST_OFFSET are invalid)
* Constructs a <code>SpinnerDateModel</code> with the specified value, lower
* and upper bounds, and which spins the specified calendar field.
* <p>
* The <code>start</code> and <code>end</code> limits must have a
* <code>compareTo</code> method that supports instances of {@link Date}, but
* do not themselves need to be instances of {@link Date} (although typically
* they are).
*
* @param value the initial value/date (<code>null</code> not permitted).
* @param start a constraint that specifies the earliest permitted date
* value, or <code>null</code> for no lower limit.
* @param end a constraint that specifies the latest permitted date value,
* or <code>null</code> for no upper limit.
* @param calendarField the <code>Calendar</code> field to spin,
* (Calendar.ZONE_OFFSET and Calendar.DST_OFFSET are invalid)
*/
public SpinnerDateModel(Date value, Comparable start, Comparable end,
int calendarField)
{
if (value == null)
throw new IllegalArgumentException("Null 'value' argument.");
if (start != null && value.compareTo(start) < 0)
if (start != null && start.compareTo(value) > 0)
throw new IllegalArgumentException("Require value on or after start.");
if (end != null && value.compareTo(end) > 0)
if (end != null && end.compareTo(value) < 0)
throw new IllegalArgumentException("Require value on or before end.");
date = Calendar.getInstance();
date.setTime(value);
@ -129,9 +135,11 @@ public class SpinnerDateModel extends AbstractSpinnerModel
}
/**
* Returns the current date.
* Returns the current date/time.
*
* @return The current date.
* @return The current date/time (never <code>null</code>).
*
* @see #getValue()
*/
public Date getDate()
{
@ -139,9 +147,12 @@ public class SpinnerDateModel extends AbstractSpinnerModel
}
/**
* Returns the start date, or <code>null</code> if there is no minimum date.
* Returns the lower limit on the date/time value, or <code>null</code> if
* there is no minimum date/time.
*
* @return The start date.
* @return The lower limit.
*
* @see #setStart(Comparable)
*/
public Comparable getStart()
{
@ -149,9 +160,12 @@ public class SpinnerDateModel extends AbstractSpinnerModel
}
/**
* Returns the end date, or <code>null</code> if there is no maximum date.
* Returns the upper limit on the date/time value, or <code>null</code> if
* there is no maximum date/time.
*
* @return The end date.
* @return The upper limit.
*
* @see #setEnd(Comparable)
*/
public Comparable getEnd()
{
@ -160,9 +174,9 @@ public class SpinnerDateModel extends AbstractSpinnerModel
/**
* Returns the current date in the sequence (this method returns the same as
* {@link #getDate()}.
* {@link #getDate()}).
*
* @return The current date.
* @return The current date (never <code>null</code>).
*/
public Object getValue()
{
@ -171,10 +185,13 @@ public class SpinnerDateModel extends AbstractSpinnerModel
/**
* Returns the next date in the sequence, or <code>null</code> if the
* next date is after the end date. The current date is not changed.
* next date is past the upper limit (if one is specified). The current date
* is not changed.
*
* @return The next date, or <code>null</code> if the current value is
* the latest date represented by the model.
*
* @see #getEnd()
*/
public Object getNextValue()
{
@ -190,11 +207,13 @@ public class SpinnerDateModel extends AbstractSpinnerModel
/**
* Returns the previous date in the sequence, or <code>null</code> if the
* previous date is prior to the start date. The current date is not
* changed.
* previous date is prior to the lower limit (if one is specified). The
* current date is not changed.
*
* @return The previous date, or <code>null</code> if the current value is
* the earliest date represented by the model.
*
* @see #getStart()
*/
public Object getPreviousValue()
{
@ -233,14 +252,16 @@ public class SpinnerDateModel extends AbstractSpinnerModel
}
/**
* Sets the start date and, if the new date is different to the old date,
* sends a {@link ChangeEvent} to all registered listeners. A
* <code>null</code> date is interpreted as "no start date". No check
* is made to ensure that the new start date is on or before the current
* date - the caller is responsible for ensuring that this relationship
* holds.
* Sets the lower limit for the date/time value and, if the new limit is
* different to the old limit, sends a {@link ChangeEvent} to all registered
* listeners. A <code>null</code> value is interpreted as "no lower limit".
* No check is made to ensure that the current date/time is on or after the
* new lower limit - the caller is responsible for ensuring that this
* relationship holds. In addition, the caller should ensure that
* <code>start</code> is {@link Serializable}.
*
* @param start the new start date (<code>null</code> permitted).
* @param start the new lower limit for the date/time value
* (<code>null</code> permitted).
*/
public void setStart(Comparable start)
{
@ -252,13 +273,16 @@ public class SpinnerDateModel extends AbstractSpinnerModel
}
/**
* Sets the end date and, if the new date is different to the old date,
* sends a {@link ChangeEvent} to all registered listeners. A
* <code>null</code> date is interpreted as "no end date". No check
* is made to ensure that the new end date is on or after the current date -
* the caller is responsible for ensuring that this relationship holds.
* Sets the upper limit for the date/time value and, if the new limit is
* different to the old limit, sends a {@link ChangeEvent} to all registered
* listeners. A <code>null</code> value is interpreted as "no upper limit".
* No check is made to ensure that the current date/time is on or before the
* new upper limit - the caller is responsible for ensuring that this
* relationship holds. In addition, the caller should ensure that
* <code>end</code> is {@link Serializable}.
*
* @param end the new end date (<code>null</code> permitted).
* @param end the new upper limit for the date/time value (<code>null</code>
* permitted).
*/
public void setEnd(Comparable end)
{