summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2001-03-11 15:52:38 +0000
committerMark Wielaard <mark@klomp.org>2001-03-11 15:52:38 +0000
commit09404eee080f7245cbdbadd78c34ea8c21fa93d1 (patch)
tree03d9db7ddb3c951b0cc549b961effb3fbe3a9e00
parent1c5ef970b4601cd5336fc60fcc0db253a8e11a69 (diff)
downloadclasspath-09404eee080f7245cbdbadd78c34ea8c21fa93d1.tar.gz
Merge all Error and Exception classes with libgcj.
-rw-r--r--ChangeLog67
-rw-r--r--java/io/CharConversionException.java9
-rw-r--r--java/io/EOFException.java9
-rw-r--r--java/io/FileNotFoundException.java9
-rw-r--r--java/io/IOException.java11
-rw-r--r--java/io/InterruptedIOException.java11
-rw-r--r--java/io/ObjectStreamException.java11
-rw-r--r--java/io/OptionalDataException.java16
-rw-r--r--java/io/StreamCorruptedException.java8
-rw-r--r--java/io/SyncFailedException.java11
-rw-r--r--java/io/UTFDataFormatException.java9
-rw-r--r--java/io/UnsupportedEncodingException.java9
-rw-r--r--java/lang/AbstractMethodError.java10
-rw-r--r--java/lang/ArithmeticException.java10
-rw-r--r--java/lang/ArrayIndexOutOfBoundsException.java14
-rw-r--r--java/lang/ArrayStoreException.java10
-rw-r--r--java/lang/ClassCastException.java10
-rw-r--r--java/lang/ClassCircularityError.java10
-rw-r--r--java/lang/ClassFormatError.java8
-rw-r--r--java/lang/CloneNotSupportedException.java10
-rw-r--r--java/lang/Error.java12
-rw-r--r--java/lang/Exception.java10
-rw-r--r--java/lang/ExceptionInInitializerError.java54
-rw-r--r--java/lang/IllegalAccessError.java10
-rw-r--r--java/lang/IllegalAccessException.java10
-rw-r--r--java/lang/IllegalArgumentException.java10
-rw-r--r--java/lang/IllegalMonitorStateException.java10
-rw-r--r--java/lang/IllegalStateException.java10
-rw-r--r--java/lang/IllegalThreadStateException.java10
-rw-r--r--java/lang/IncompatibleClassChangeError.java10
-rw-r--r--java/lang/IndexOutOfBoundsException.java10
-rw-r--r--java/lang/InstantiationError.java10
-rw-r--r--java/lang/InstantiationException.java10
-rw-r--r--java/lang/InternalError.java10
-rw-r--r--java/lang/InterruptedException.java10
-rw-r--r--java/lang/LinkageError.java10
-rw-r--r--java/lang/NegativeArraySizeException.java10
-rw-r--r--java/lang/NoClassDefFoundError.java10
-rw-r--r--java/lang/NoSuchFieldError.java10
-rw-r--r--java/lang/NoSuchFieldException.java10
-rw-r--r--java/lang/NoSuchMethodError.java10
-rw-r--r--java/lang/NoSuchMethodException.java10
-rw-r--r--java/lang/NullPointerException.java10
-rw-r--r--java/lang/NumberFormatException.java10
-rw-r--r--java/lang/OutOfMemoryError.java10
-rw-r--r--java/lang/RuntimeException.java10
-rw-r--r--java/lang/SecurityException.java10
-rw-r--r--java/lang/StackOverflowError.java10
-rw-r--r--java/lang/StringIndexOutOfBoundsException.java12
-rw-r--r--java/lang/ThreadDeath.java13
-rw-r--r--java/lang/UnknownError.java8
-rw-r--r--java/lang/UnsatisfiedLinkError.java10
-rw-r--r--java/lang/UnsupportedOperationException.java11
-rw-r--r--java/lang/VerifyError.java10
-rw-r--r--java/lang/VirtualMachineError.java10
-rw-r--r--java/lang/reflect/InvocationTargetException.java59
-rw-r--r--java/net/BindException.java10
-rw-r--r--java/net/ConnectException.java10
-rw-r--r--java/net/MalformedURLException.java10
-rw-r--r--java/net/NoRouteToHostException.java10
-rw-r--r--java/net/ProtocolException.java10
-rw-r--r--java/net/SocketException.java8
-rw-r--r--java/net/UnknownHostException.java9
-rw-r--r--java/net/UnknownServiceException.java10
-rw-r--r--java/text/ParseException.java15
65 files changed, 663 insertions, 150 deletions
diff --git a/ChangeLog b/ChangeLog
index 95e737396..776f53d8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,70 @@
+2001-03-11 Mark Wielaard <mark@klomp.org>
+
+ * java/io/CharConversionException.java: merged with libgcj
+ * java/io/EOFException.java: idem
+ * java/io/FileNotFoundException.java: idem
+ * java/io/IOException.java: idem
+ * java/io/InterruptedIOException.java: idem
+ * java/io/ObjectStreamException.java: idem
+ * java/io/OptionalDataException.java: idem
+ * java/io/StreamCorruptedException.java: idem
+ * java/io/SyncFailedException.java: idem
+ * java/io/UTFDataFormatException.java: idem
+ * java/io/UnsupportedEncodingException.java: idem
+ * java/lang/AbstractMethodError.java: idem
+ * java/lang/ArithmeticException.java: idem
+ * java/lang/ArrayIndexOutOfBoundsException.java: idem
+ * java/lang/ArrayStoreException.java: idem
+ * java/lang/ClassCastException.java: idem
+ * java/lang/ClassCircularityError.java: idem
+ * java/lang/ClassFormatError.java: idem
+ * java/lang/CloneNotSupportedException.java: idem
+ * java/lang/Error.java: idem
+ * java/lang/Exception.java: idem
+ * java/lang/ExceptionInInitializerError.java: idem
+ * java/lang/IllegalAccessError.java: idem
+ * java/lang/IllegalAccessException.java: idem
+ * java/lang/IllegalArgumentException.java: idem
+ * java/lang/IllegalMonitorStateException.java: idem
+ * java/lang/IllegalStateException.java: idem
+ * java/lang/IllegalThreadStateException.java: idem
+ * java/lang/IncompatibleClassChangeError.java: idem
+ * java/lang/IndexOutOfBoundsException.java: idem
+ * java/lang/InstantiationError.java: idem
+ * java/lang/InstantiationException.java: idem
+ * java/lang/InternalError.java: idem
+ * java/lang/InterruptedException.java: idem
+ * java/lang/LinkageError.java: idem
+ * java/lang/NegativeArraySizeException.java: idem
+ * java/lang/NoClassDefFoundError.java: idem
+ * java/lang/NoSuchFieldError.java: idem
+ * java/lang/NoSuchFieldException.java: idem
+ * java/lang/NoSuchMethodError.java: idem
+ * java/lang/NoSuchMethodException.java: idem
+ * java/lang/NullPointerException.java: idem
+ * java/lang/NumberFormatException.java: idem
+ * java/lang/OutOfMemoryError.java: idem
+ * java/lang/RuntimeException.java: idem
+ * java/lang/SecurityException.java: idem
+ * java/lang/StackOverflowError.java: idem
+ * java/lang/StringIndexOutOfBoundsException.java: idem
+ * java/lang/ThreadDeath.java: idem
+ * java/lang/UnknownError.java: idem
+ * java/lang/UnsatisfiedLinkError.java: idem
+ * java/lang/UnsupportedOperationException.java: idem
+ * java/lang/VerifyError.java: idem
+ * java/lang/VirtualMachineError.java: idem
+ * java/lang/reflect/InvocationTargetException.java: idem
+ * java/net/BindException.java: idem
+ * java/net/ConnectException.java: idem
+ * java/net/MalformedURLException.java: idem
+ * java/net/NoRouteToHostException.java: idem
+ * java/net/ProtocolException.java: idem
+ * java/net/SocketException.java: idem
+ * java/net/UnknownHostException.java: idem
+ * java/net/UnknownServiceException.java: idem
+ * java/text/ParseException.java: idem
+
2001-03-08 Tom Tromey <tromey@redhat.com>
* java/io/ObjectStreamClass.java (setUID): Don't write interface
diff --git a/java/io/CharConversionException.java b/java/io/CharConversionException.java
index efa680223..e090dfc60 100644
--- a/java/io/CharConversionException.java
+++ b/java/io/CharConversionException.java
@@ -1,5 +1,5 @@
/* CharConversionException.java -- Character conversion exceptions
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,11 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Complete to 1.1.
+ */
+
/**
* This exception is thrown to indicate that a problem occured with
* an attempted character conversion.
@@ -34,6 +39,8 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date September 25, 1998
*/
public class CharConversionException extends IOException
{
diff --git a/java/io/EOFException.java b/java/io/EOFException.java
index 983798678..9a57f5fe3 100644
--- a/java/io/EOFException.java
+++ b/java/io/EOFException.java
@@ -1,5 +1,5 @@
/* EOFException.java -- Unexpected end of file exception
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,11 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Complete to 1.1.
+ */
+
/**
* This exception is thrown when the end of the file or stream was
* encountered unexpectedly. This is not the normal way that a normal
@@ -38,6 +43,8 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date September 24, 1998
*/
public class EOFException extends IOException
{
diff --git a/java/io/FileNotFoundException.java b/java/io/FileNotFoundException.java
index cbf7bda83..16150b4d4 100644
--- a/java/io/FileNotFoundException.java
+++ b/java/io/FileNotFoundException.java
@@ -1,5 +1,5 @@
/* FileNotFoundException.java -- The requested file could not be found
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,11 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Complete to 1.1.
+ */
+
/**
* This exception is thrown when an attempt is made to access a file that
* does not exist.
@@ -34,6 +39,8 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date September 24, 1998
*/
public class FileNotFoundException extends IOException
{
diff --git a/java/io/IOException.java b/java/io/IOException.java
index 1eaa916e9..815d92698 100644
--- a/java/io/IOException.java
+++ b/java/io/IOException.java
@@ -1,5 +1,5 @@
/* IOException.java -- Generic input/output exception
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,7 +27,10 @@ executable file might be covered by the GNU General Public License. */
package java.io;
-import java.lang.Exception;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Complete to 1.1.
+ */
/**
* This exception is thrown to indicate an I/O problem of some sort
@@ -38,8 +41,10 @@ import java.lang.Exception;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date September 24, 1998
*/
-public class IOException extends java.lang.Exception
+public class IOException extends Exception
{
/*
diff --git a/java/io/InterruptedIOException.java b/java/io/InterruptedIOException.java
index 635e55f52..372286307 100644
--- a/java/io/InterruptedIOException.java
+++ b/java/io/InterruptedIOException.java
@@ -1,5 +1,5 @@
/* InterruptedIOException.java -- An I/O operation was interrupted.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,11 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Complete to 1.1.
+ */
+
/**
* This exception is thrown when a in process I/O operation is
* interrupted for some reason. The field bytesTransferred will contain
@@ -35,10 +40,14 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date September 24, 1998
*/
public class InterruptedIOException extends IOException
{
+private static final long serialVersionUID = 4020568460727500567L;
+
/*
* Instance Variables
*/
diff --git a/java/io/ObjectStreamException.java b/java/io/ObjectStreamException.java
index 6336e0f37..f006321b1 100644
--- a/java/io/ObjectStreamException.java
+++ b/java/io/ObjectStreamException.java
@@ -1,5 +1,5 @@
-/* ObjectStreamException.java -- Unexpected end of file exception
- Copyright (C) 1998 Free Software Foundation, Inc.
+/* ObjectStreamException.java -- Superclass of all serialisation exceptions
+ Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,10 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
/**
* This exception is thrown when a problem occurs during serialization.
* There are more specific subclasses than give more fine grained
@@ -35,9 +39,10 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 7, 2000.
*/
public abstract class ObjectStreamException extends IOException
- implements Serializable
{
/*
diff --git a/java/io/OptionalDataException.java b/java/io/OptionalDataException.java
index 46cc65c91..213880bbd 100644
--- a/java/io/OptionalDataException.java
+++ b/java/io/OptionalDataException.java
@@ -1,5 +1,5 @@
-/* OptionalDataException.java -- Unexpected end of file exception
- Copyright (C) 1998 Free Software Foundation, Inc.
+/* OptionalDataException.java -- indicates unexpected data in serialised stream
+ Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,10 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
/**
* This exception is thrown when unexpected data appears in the input
* stream from which a serialized object is being read. The field
@@ -37,10 +41,14 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 7, 2000.
*/
public class OptionalDataException extends ObjectStreamException
{
+private static final long serialVersionUID = -8011121865681257820L;
+
/*
* Instance Variables
*/
@@ -69,10 +77,10 @@ public int length;
* @param eof 'true' if end of stream reached, 'false' otherwise
* @param count The number of valid bytes to be read.
*/
-OptionalDataException()
+OptionalDataException(boolean eof, int count)
{
this.eof = eof;
- this.length = length;
+ this.length = count;
}
} // class OptionalDataException
diff --git a/java/io/StreamCorruptedException.java b/java/io/StreamCorruptedException.java
index dbed026fb..7f807ca2f 100644
--- a/java/io/StreamCorruptedException.java
+++ b/java/io/StreamCorruptedException.java
@@ -1,5 +1,5 @@
/* StreamCorruptedException.java -- Error in stream during serialization
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,10 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
/**
* This exception is thrown when there is an error in the data that is
* read from a stream during de-serialization.
@@ -34,6 +38,8 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 7, 2000.
*/
public class StreamCorruptedException extends ObjectStreamException
{
diff --git a/java/io/SyncFailedException.java b/java/io/SyncFailedException.java
index 2b3695239..0ec75d657 100644
--- a/java/io/SyncFailedException.java
+++ b/java/io/SyncFailedException.java
@@ -1,5 +1,5 @@
/* SyncFailedException.java -- The sync failed (?)
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,16 +27,25 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Complete to 1.1.
+ */
+
/**
* I really wish I knew what caused this exception to be thrown.
*
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date September 24, 1998
*/
public class SyncFailedException extends IOException
{
+private static final long serialVersionUID = -2353342684412443330L;
+
/*
* Constructors
*/
diff --git a/java/io/UTFDataFormatException.java b/java/io/UTFDataFormatException.java
index b3879b57c..378e992c4 100644
--- a/java/io/UTFDataFormatException.java
+++ b/java/io/UTFDataFormatException.java
@@ -1,5 +1,5 @@
/* UTFDataFormatException.java -- Bad format in UTF data
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,11 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Complete to 1.1.
+ */
+
/**
* When reading a UTF string from an input stream, this exception is thrown
* to indicate that the data read is invalid.
@@ -34,6 +39,8 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date September 24, 1998
*/
public class UTFDataFormatException extends IOException
{
diff --git a/java/io/UnsupportedEncodingException.java b/java/io/UnsupportedEncodingException.java
index 402a419fc..8ea7f0322 100644
--- a/java/io/UnsupportedEncodingException.java
+++ b/java/io/UnsupportedEncodingException.java
@@ -1,5 +1,5 @@
/* UnsupportedEncodingException.java -- The requested encoding isn't supported
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,11 @@ executable file might be covered by the GNU General Public License. */
package java.io;
+/* Written using "Java Class Libraries", 2nd edition, plus online
+ * API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* This exception is thrown when the requested character encoding is
* not supported.
@@ -34,6 +39,8 @@ package java.io;
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Per Bothner <bothner@cygnus.com>
+ * @date April 17, 1998.
*/
public class UnsupportedEncodingException extends IOException
{
diff --git a/java/lang/AbstractMethodError.java b/java/lang/AbstractMethodError.java
index 27969d3e0..b1e48fea0 100644
--- a/java/lang/AbstractMethodError.java
+++ b/java/lang/AbstractMethodError.java
@@ -1,5 +1,5 @@
/* AbstractMethodError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* An <code>AbstractMethodError</code> is thrown when an application
* attempts to access an abstract method. Compilers typically detect
@@ -36,6 +42,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class AbstractMethodError extends IncompatibleClassChangeError
{
diff --git a/java/lang/ArithmeticException.java b/java/lang/ArithmeticException.java
index d92b48f03..542a9093c 100644
--- a/java/lang/ArithmeticException.java
+++ b/java/lang/ArithmeticException.java
@@ -1,6 +1,6 @@
/* ArithmeticException.java -- exception thrown to indicate conditions
like divide by zero.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional circumstances.
@@ -37,6 +43,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class ArithmeticException extends RuntimeException
{
diff --git a/java/lang/ArrayIndexOutOfBoundsException.java b/java/lang/ArrayIndexOutOfBoundsException.java
index 9845f946d..e30af6107 100644
--- a/java/lang/ArrayIndexOutOfBoundsException.java
+++ b/java/lang/ArrayIndexOutOfBoundsException.java
@@ -1,6 +1,6 @@
/* ArrayIndexOutOfBoundsException.java -- exception thrown when accessing
an illegal index.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,13 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions, in this case
@@ -38,6 +45,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
{
@@ -61,8 +70,7 @@ public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
* Create an exception indicating the illegal index.
*/
public ArrayIndexOutOfBoundsException(int index) {
- super(String.valueOf(index));
+ super("Array index out of range: " + index);
}
-
}
diff --git a/java/lang/ArrayStoreException.java b/java/lang/ArrayStoreException.java
index a1f94f298..c2446c6f5 100644
--- a/java/lang/ArrayStoreException.java
+++ b/java/lang/ArrayStoreException.java
@@ -1,6 +1,6 @@
/* ArrayStoreException.java -- exception thrown to when trying to store an
object into an array of a different type.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions, in this case
@@ -36,6 +42,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class ArrayStoreException extends RuntimeException
{
diff --git a/java/lang/ClassCastException.java b/java/lang/ClassCastException.java
index 9e354f186..1e0512e8b 100644
--- a/java/lang/ClassCastException.java
+++ b/java/lang/ClassCastException.java
@@ -1,6 +1,6 @@
/* ClassCastException.java -- exception thrown when incorrectly trying to
cast an object to a subclass it does not belong to.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions. In this case
@@ -41,6 +47,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class ClassCastException extends RuntimeException
{
diff --git a/java/lang/ClassCircularityError.java b/java/lang/ClassCircularityError.java
index ddf182d89..c41856ed5 100644
--- a/java/lang/ClassCircularityError.java
+++ b/java/lang/ClassCircularityError.java
@@ -1,5 +1,5 @@
/* ClassCircularityError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>ClassCircularityError</code> is thrown when a circular dependency
* has been detected while initializing a class.
@@ -34,6 +40,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class ClassCircularityError extends LinkageError
{
diff --git a/java/lang/ClassFormatError.java b/java/lang/ClassFormatError.java
index 3bb5569b6..51866ba5c 100644
--- a/java/lang/ClassFormatError.java
+++ b/java/lang/ClassFormatError.java
@@ -1,5 +1,5 @@
/* ClassFormatError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>ClassFormatError</code> is thrown when a Java Virtual Machine
* unable to read a class file because the file is corrupted or cannot be
diff --git a/java/lang/CloneNotSupportedException.java b/java/lang/CloneNotSupportedException.java
index d9a7bfa93..23e199a27 100644
--- a/java/lang/CloneNotSupportedException.java
+++ b/java/lang/CloneNotSupportedException.java
@@ -1,7 +1,7 @@
/* CloneNotSupportedException.java -- exception thrown to indicate that
the object calling the clone method of Object does not implement the
Cloneable interface.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -29,6 +29,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -40,6 +46,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class CloneNotSupportedException extends Exception
{
diff --git a/java/lang/Error.java b/java/lang/Error.java
index 097bc6537..5a0c3cc84 100644
--- a/java/lang/Error.java
+++ b/java/lang/Error.java
@@ -1,5 +1,5 @@
-/* Error.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+/* Error.java - Indication of fatal abnormal conditions
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Applications should not try to catch errors since they indicate
* abnormal conditions. An abnormal condition is something which should not
@@ -40,6 +46,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class Error extends Throwable
{
diff --git a/java/lang/Exception.java b/java/lang/Exception.java
index 870868fc5..90fc88868 100644
--- a/java/lang/Exception.java
+++ b/java/lang/Exception.java
@@ -1,6 +1,6 @@
/* Exception.java -- generic exception thrown to indicate an exceptional
condition has occurred.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with the cause of the exception, such as
@@ -36,6 +42,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class Exception extends Throwable
{
diff --git a/java/lang/ExceptionInInitializerError.java b/java/lang/ExceptionInInitializerError.java
index 4384d8501..7101740cb 100644
--- a/java/lang/ExceptionInInitializerError.java
+++ b/java/lang/ExceptionInInitializerError.java
@@ -1,5 +1,5 @@
/* ExceptionInInitializerError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,12 +27,15 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
-import java.io.ObjectOutputStream;
-import java.io.ObjectInputStream;
-import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* An <code>ExceptionInInitializerError</code> is thrown when an
* unexpected exception has occurred in a static initializer or the
@@ -41,12 +44,14 @@ import java.io.PrintWriter;
* @since JDK 1.1
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class ExceptionInInitializerError extends LinkageError
{
static final long serialVersionUID = 1521711792217232256L;
- private Throwable t = null;
+ private Throwable exception = null;
/**
* Create an error without a message.
@@ -73,7 +78,7 @@ public class ExceptionInInitializerError extends LinkageError
public ExceptionInInitializerError(Throwable t)
{
super();
- this.t = t;
+ exception = t;
}
/**
@@ -84,7 +89,7 @@ public class ExceptionInInitializerError extends LinkageError
*/
public Throwable getException()
{
- return t;
+ return exception;
}
/**
@@ -92,13 +97,13 @@ public class ExceptionInInitializerError extends LinkageError
*/
public void printStackTrace()
{
- if (t == null)
+ if (exception == null)
{
super.printStackTrace();
}
else
{
- t.printStackTrace();
+ exception.printStackTrace();
}
}
@@ -108,13 +113,13 @@ public class ExceptionInInitializerError extends LinkageError
*/
public void printStackTrace(PrintStream ps)
{
- if (t == null)
+ if (exception == null)
{
super.printStackTrace(ps);
}
else
{
- t.printStackTrace(ps);
+ exception.printStackTrace(ps);
}
}
@@ -124,36 +129,13 @@ public class ExceptionInInitializerError extends LinkageError
*/
public void printStackTrace(PrintWriter pw)
{
- if (t == null)
+ if (exception == null)
{
super.printStackTrace(pw);
}
else
{
- t.printStackTrace(pw);
+ exception.printStackTrace(pw);
}
}
-
- /**
- * Serialize the object in a manner binary compatible with the JDK 1.2
- */
- private void writeObject(java.io.ObjectOutputStream s)
- throws IOException
- {
- ObjectOutputStream.PutField oFields;
- oFields = s.putFields();
- oFields.put("exception", this.t);
- s.writeFields();
- }
-
- /**
- * Deserialize the object in a manner binary compatible with the JDK 1.2
- */
- private void readObject(java.io.ObjectInputStream s)
- throws IOException, ClassNotFoundException
- {
- ObjectInputStream.GetField oFields;
- oFields = s.readFields();
- this.t = (Throwable)oFields.get("exception", (Throwable)null);
- }
}
diff --git a/java/lang/IllegalAccessError.java b/java/lang/IllegalAccessError.java
index f01789ee9..3fbde9470 100644
--- a/java/lang/IllegalAccessError.java
+++ b/java/lang/IllegalAccessError.java
@@ -1,5 +1,5 @@
/* IllegalAccessError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* An <code>IllegalAccessError</code> is thrown when an attempt is made to
* call a method, or access or modify a field that the application does not
@@ -38,6 +44,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class IllegalAccessError extends IncompatibleClassChangeError
{
diff --git a/java/lang/IllegalAccessException.java b/java/lang/IllegalAccessException.java
index 8ecc4b278..af15fd2d7 100644
--- a/java/lang/IllegalAccessException.java
+++ b/java/lang/IllegalAccessException.java
@@ -1,6 +1,6 @@
/* IllegalAccessException.java -- exception thrown when trying to load a
class that is not public and in another package.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -41,6 +47,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class IllegalAccessException extends Exception
{
diff --git a/java/lang/IllegalArgumentException.java b/java/lang/IllegalArgumentException.java
index 543a24056..7d2d54701 100644
--- a/java/lang/IllegalArgumentException.java
+++ b/java/lang/IllegalArgumentException.java
@@ -1,6 +1,6 @@
/* IllegalArgumentException.java -- exception may be thrown when a method
is passed an illegal or inappropriate argument.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -36,6 +42,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class IllegalArgumentException extends RuntimeException
{
diff --git a/java/lang/IllegalMonitorStateException.java b/java/lang/IllegalMonitorStateException.java
index ae36d8a65..dcaa76570 100644
--- a/java/lang/IllegalMonitorStateException.java
+++ b/java/lang/IllegalMonitorStateException.java
@@ -1,6 +1,6 @@
/* IllegalMonitorStateException.java -- exception thrown when a thread
attempts to wait on an object's monitor.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -39,6 +45,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class IllegalMonitorStateException extends RuntimeException
{
diff --git a/java/lang/IllegalStateException.java b/java/lang/IllegalStateException.java
index bd15b7541..1f154c0a4 100644
--- a/java/lang/IllegalStateException.java
+++ b/java/lang/IllegalStateException.java
@@ -1,6 +1,6 @@
/* IllegalStateException.java -- exception thrown when invoking a method at
an illegal or inappropriate time.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -37,6 +43,8 @@ package java.lang;
* @since JDK 1.1
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class IllegalStateException extends RuntimeException
{
diff --git a/java/lang/IllegalThreadStateException.java b/java/lang/IllegalThreadStateException.java
index 9dde3eadb..7b4693ea4 100644
--- a/java/lang/IllegalThreadStateException.java
+++ b/java/lang/IllegalThreadStateException.java
@@ -1,7 +1,7 @@
/* IllegalThreadStateException.java -- exception thrown when trying to
suspend or resume an object of class Thread when it is not in an
appropriate state for the operation.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -29,6 +29,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -38,6 +44,8 @@ package java.lang;
*
* @since JDK 1.0
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class IllegalThreadStateException extends IllegalArgumentException
{
diff --git a/java/lang/IncompatibleClassChangeError.java b/java/lang/IncompatibleClassChangeError.java
index 8117a4094..5a06b9a14 100644
--- a/java/lang/IncompatibleClassChangeError.java
+++ b/java/lang/IncompatibleClassChangeError.java
@@ -1,5 +1,5 @@
/* IncompatibleClassChangeError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* An <code>IncompatibleClassChangeError</code> is thrown when the
* definition of a class used by the currently executing method has
@@ -35,6 +41,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class IncompatibleClassChangeError extends LinkageError
{
diff --git a/java/lang/IndexOutOfBoundsException.java b/java/lang/IndexOutOfBoundsException.java
index 673dbe5d6..8ad884403 100644
--- a/java/lang/IndexOutOfBoundsException.java
+++ b/java/lang/IndexOutOfBoundsException.java
@@ -1,7 +1,7 @@
/* IndexOutOfBoundsException.java -- exception thrown when attempting to
access an index which is out of bounds on objects like String, Array,
or Vector.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -29,6 +29,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -41,6 +47,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class IndexOutOfBoundsException extends RuntimeException
{
diff --git a/java/lang/InstantiationError.java b/java/lang/InstantiationError.java
index 5db34ae00..788fac51f 100644
--- a/java/lang/InstantiationError.java
+++ b/java/lang/InstantiationError.java
@@ -1,5 +1,5 @@
/* InstantiationError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* An <code>InstantiationError</code> is thrown when an attempt is made to
* create an instance of an abstract class or an interface. Because this
@@ -38,6 +44,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class InstantiationError extends IncompatibleClassChangeError
{
diff --git a/java/lang/InstantiationException.java b/java/lang/InstantiationException.java
index 81b0d2faf..19237d74d 100644
--- a/java/lang/InstantiationException.java
+++ b/java/lang/InstantiationException.java
@@ -1,6 +1,6 @@
/* InstantiationException.java -- exception thrown when trying to instantiate
interfaces and abstract classes using the newInstance method of class Class.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -38,6 +44,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class InstantiationException extends Exception
{
diff --git a/java/lang/InternalError.java b/java/lang/InternalError.java
index bffcbb7a4..379d46564 100644
--- a/java/lang/InternalError.java
+++ b/java/lang/InternalError.java
@@ -1,5 +1,5 @@
/* InternalError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* An <code>InternalError</code> is thrown when a mystical error has
* occurred in the Java Virtual Machine.
@@ -34,6 +40,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class InternalError extends VirtualMachineError
{
diff --git a/java/lang/InterruptedException.java b/java/lang/InterruptedException.java
index e34efa5ef..ca55fa662 100644
--- a/java/lang/InterruptedException.java
+++ b/java/lang/InterruptedException.java
@@ -1,7 +1,7 @@
/* InterruptedException.java -- exception thrown when a thread interrupts
another thread which was previously sleeping, waiting, or paused in some
other way.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -29,6 +29,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -39,6 +45,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class InterruptedException extends Exception
{
diff --git a/java/lang/LinkageError.java b/java/lang/LinkageError.java
index 32448709a..8de9dd2c7 100644
--- a/java/lang/LinkageError.java
+++ b/java/lang/LinkageError.java
@@ -1,5 +1,5 @@
/* LinkageError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Subclasses of <code>LinkageError</code> are thrown to indicate
* a class which is depended upon by another class has incompatibly
@@ -35,6 +41,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class LinkageError extends Error
{
diff --git a/java/lang/NegativeArraySizeException.java b/java/lang/NegativeArraySizeException.java
index 968771d0e..8af136e62 100644
--- a/java/lang/NegativeArraySizeException.java
+++ b/java/lang/NegativeArraySizeException.java
@@ -1,6 +1,6 @@
/* NegativeArraySizeException.java -- exception thrown when an attempt is
made to create an array with a negative size.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -37,6 +43,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class NegativeArraySizeException extends RuntimeException
{
diff --git a/java/lang/NoClassDefFoundError.java b/java/lang/NoClassDefFoundError.java
index 17a3c73e8..9c123c049 100644
--- a/java/lang/NoClassDefFoundError.java
+++ b/java/lang/NoClassDefFoundError.java
@@ -1,5 +1,5 @@
/* NoClassDefFoundError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>NoClassDefFoundError</code> is thrown when a classloader or the
* Java Virtual Machine tries to load a class and no definition of the class
@@ -38,6 +44,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class NoClassDefFoundError extends LinkageError
{
diff --git a/java/lang/NoSuchFieldError.java b/java/lang/NoSuchFieldError.java
index bb54b70cf..22cac1f2e 100644
--- a/java/lang/NoSuchFieldError.java
+++ b/java/lang/NoSuchFieldError.java
@@ -1,5 +1,5 @@
/* NoSuchFieldError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>NoSuchFieldError</code> is thrown if an application attempts
* to access the field of an object and that object no longer has that
@@ -35,6 +41,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class NoSuchFieldError extends IncompatibleClassChangeError
{
diff --git a/java/lang/NoSuchFieldException.java b/java/lang/NoSuchFieldException.java
index f044ababd..e01eff7b1 100644
--- a/java/lang/NoSuchFieldException.java
+++ b/java/lang/NoSuchFieldException.java
@@ -1,6 +1,6 @@
/* NoSuchFieldException.java -- exception thrown to indicate the class does
not have the specified field.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -36,6 +42,8 @@ package java.lang;
* @since JDK 1.1
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class NoSuchFieldException extends Exception
{
diff --git a/java/lang/NoSuchMethodError.java b/java/lang/NoSuchMethodError.java
index 2e20e41f1..d169b51cb 100644
--- a/java/lang/NoSuchMethodError.java
+++ b/java/lang/NoSuchMethodError.java
@@ -1,5 +1,5 @@
/* NoSuchMethodError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>NoSuchMethodError</code> is thrown if an application attempts
* to access a method of a class, and that class no longer has that
@@ -35,6 +41,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class NoSuchMethodError extends IncompatibleClassChangeError
{
diff --git a/java/lang/NoSuchMethodException.java b/java/lang/NoSuchMethodException.java
index 032cccd86..b4b19fa54 100644
--- a/java/lang/NoSuchMethodException.java
+++ b/java/lang/NoSuchMethodException.java
@@ -1,6 +1,6 @@
/* NoSuchMethodException.java -- exception thrown to indicate the class
does not have the specified method.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -36,6 +42,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class NoSuchMethodException extends Exception
{
diff --git a/java/lang/NullPointerException.java b/java/lang/NullPointerException.java
index b0a246c46..6ba13f591 100644
--- a/java/lang/NullPointerException.java
+++ b/java/lang/NullPointerException.java
@@ -1,6 +1,6 @@
/* NullPointerException.java -- exception thrown when attempting to use null
where an object is required.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -37,6 +43,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class NullPointerException extends RuntimeException
{
diff --git a/java/lang/NumberFormatException.java b/java/lang/NumberFormatException.java
index 9cb7f48f1..5978f7e94 100644
--- a/java/lang/NumberFormatException.java
+++ b/java/lang/NumberFormatException.java
@@ -1,6 +1,6 @@
/* NumberFormatException.java -- exception may be thrown when attempting to
convert a String to one of the numeric types, but the operation fails.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -38,6 +44,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class NumberFormatException extends IllegalArgumentException
{
diff --git a/java/lang/OutOfMemoryError.java b/java/lang/OutOfMemoryError.java
index 3803d5ac1..69693e9d0 100644
--- a/java/lang/OutOfMemoryError.java
+++ b/java/lang/OutOfMemoryError.java
@@ -1,5 +1,5 @@
/* OutOfMemoryError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* When the Java Virtual Machine is unable to allocate an object because it
* is out of memory and no more memory could be made available by the
@@ -35,6 +41,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class OutOfMemoryError extends VirtualMachineError
{
diff --git a/java/lang/RuntimeException.java b/java/lang/RuntimeException.java
index ac75f18a0..c3960dc7a 100644
--- a/java/lang/RuntimeException.java
+++ b/java/lang/RuntimeException.java
@@ -1,6 +1,6 @@
/* RuntimeException.java -- all exceptions which are subclasses of this class
can be thrown at any time during the execution of a Java virtual machine.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -39,6 +45,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class RuntimeException extends Exception
{
diff --git a/java/lang/SecurityException.java b/java/lang/SecurityException.java
index 3cac5dcca..25db42487 100644
--- a/java/lang/SecurityException.java
+++ b/java/lang/SecurityException.java
@@ -1,6 +1,6 @@
/* SecurityException.java -- exception thrown to indicate a security
violation.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -37,6 +43,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class SecurityException extends RuntimeException
{
diff --git a/java/lang/StackOverflowError.java b/java/lang/StackOverflowError.java
index e11170a8a..9c155e8a7 100644
--- a/java/lang/StackOverflowError.java
+++ b/java/lang/StackOverflowError.java
@@ -1,5 +1,5 @@
/* StackOverflowError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>StackOverflowError</code> is thrown when a stack overflow occurs.
* This can occur because an application recurses too deeply.
@@ -34,6 +40,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class StackOverflowError extends VirtualMachineError
{
diff --git a/java/lang/StringIndexOutOfBoundsException.java b/java/lang/StringIndexOutOfBoundsException.java
index fad0bdcab..ebfc03c37 100644
--- a/java/lang/StringIndexOutOfBoundsException.java
+++ b/java/lang/StringIndexOutOfBoundsException.java
@@ -1,6 +1,6 @@
/* StringIndexOutOfBoundsException.java -- exception thrown to indicate
an attempt to access an index which is out of bounds.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,6 +28,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* Exceptions may be thrown by one part of a Java program and caught
* by another in order to deal with exceptional conditions.
@@ -40,6 +46,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
{
@@ -66,6 +74,6 @@ public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
*/
public StringIndexOutOfBoundsException(int index)
{
- super(String.valueOf(index));
+ super("String index out of range: " + index);
}
}
diff --git a/java/lang/ThreadDeath.java b/java/lang/ThreadDeath.java
index 5621dd610..fe4f9ba83 100644
--- a/java/lang/ThreadDeath.java
+++ b/java/lang/ThreadDeath.java
@@ -1,5 +1,5 @@
-/* java.lang.ThreadDeath
- Copyright (C) 1998 Free Software Foundation, Inc.
+/* java.lang.ThreadDeath - Special exception registering Thread death.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,13 +27,20 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Complete to version 1.1
+ */
+
/**
** ThreadDeath is thrown in a thread when someone calls <CODE>stop()</CODE> on that thread.
**
** <B>Important:</B> Make sure you rethrow this exception if you catch it. If you don't, the thread will not die.
**
** @author John Keiser
- ** @version 1.1.0, 5 Feb 1998
+ ** @author Tom Tromey <tromey@cygnus.com>
+ ** @version 1.1.0, 5 Feb 1998, August 26 1998
** @since JDK1.0
** @see java.lang.Thread#stop()
**/
diff --git a/java/lang/UnknownError.java b/java/lang/UnknownError.java
index 056ce08da..58214ff1a 100644
--- a/java/lang/UnknownError.java
+++ b/java/lang/UnknownError.java
@@ -1,5 +1,5 @@
/* UnknownError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* An <code>UnknownError</code> is thrown when a serious but unknown
* problem has occurred in the Java Virtual Machine.
diff --git a/java/lang/UnsatisfiedLinkError.java b/java/lang/UnsatisfiedLinkError.java
index 75f63a180..63c3a1e5d 100644
--- a/java/lang/UnsatisfiedLinkError.java
+++ b/java/lang/UnsatisfiedLinkError.java
@@ -1,5 +1,5 @@
/* UnsatisfiedLinkError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>UnsatisfiedLinkError</code> is thrown if an appropriate
* native language definition of a method declared <code>native</code>
@@ -35,6 +41,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class UnsatisfiedLinkError extends LinkageError
{
diff --git a/java/lang/UnsupportedOperationException.java b/java/lang/UnsupportedOperationException.java
index 84d7378ad..8cf1b1f35 100644
--- a/java/lang/UnsupportedOperationException.java
+++ b/java/lang/UnsupportedOperationException.java
@@ -1,6 +1,6 @@
/* UnsupportedOperationException.java -- Exception thrown when an
unsupported operation is attempted on an object
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,11 +28,20 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* This exception is thrown by an object when an operation is
* requested of it that it does not support.
*
* @since JDK 1.2
+ *
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date September 18, 1998.
*/
public class UnsupportedOperationException extends RuntimeException
{
diff --git a/java/lang/VerifyError.java b/java/lang/VerifyError.java
index 55ea1db7a..801428da5 100644
--- a/java/lang/VerifyError.java
+++ b/java/lang/VerifyError.java
@@ -1,5 +1,5 @@
/* VerifyError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>VerifyError</code> is thrown if there is a security problem or
* internal inconsistency in a class file as deteced by the "verifier."
@@ -34,6 +40,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public class VerifyError extends LinkageError
{
diff --git a/java/lang/VirtualMachineError.java b/java/lang/VirtualMachineError.java
index 1498a7c3f..a64ca43d1 100644
--- a/java/lang/VirtualMachineError.java
+++ b/java/lang/VirtualMachineError.java
@@ -1,5 +1,5 @@
/* VirtualMachineError.java
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,6 +27,12 @@ executable file might be covered by the GNU General Public License. */
package java.lang;
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* A <code>VirtualMachineError</code> or its subclasses are thrown to
* indicate there is something wrong with the Java Virtual Machine or that
@@ -35,6 +41,8 @@ package java.lang;
* @since JDK 1.0
*
* @author Brian Jones
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date October 1, 1998
*/
public abstract class VirtualMachineError extends Error
{
diff --git a/java/lang/reflect/InvocationTargetException.java b/java/lang/reflect/InvocationTargetException.java
index 847211b13..5a7964102 100644
--- a/java/lang/reflect/InvocationTargetException.java
+++ b/java/lang/reflect/InvocationTargetException.java
@@ -1,5 +1,5 @@
-/* java.lang.reflect.InvocationTargetException
- Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* InvocationTargetException.java - Wrapper exception for reflection
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,7 +27,13 @@ executable file might be covered by the GNU General Public License. */
package java.lang.reflect;
-import java.io.*;
+import java.io.PrintStream;
+import java.io.PrintWriter;
+
+/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * "The Java Language Specification", ISBN 0-201-63451-1
+ * Status: Believed complete and correct.
+ */
/**
* InvocationTargetException is sort of a way to "wrap" whatever exception
@@ -35,6 +41,9 @@ import java.io.*;
*
* @author John Keiser
* @version 1.1.0, 31 May 1998
+ * @author Tom Tromey <tromey@cygnus.com>
+ * @date December 12, 1998
+ *
* @see Method#invoke(Object,Object[])
* @see Constructor#newInstance(Object[])
*/
@@ -42,7 +51,8 @@ import java.io.*;
public class InvocationTargetException extends Exception
{
static final long serialVersionUID = 4085088731926701167L;
- private Throwable targetException = null;
+
+ private Throwable target = null;
protected InvocationTargetException()
{
@@ -57,7 +67,7 @@ public class InvocationTargetException extends Exception
public InvocationTargetException(Throwable targetException)
{
super();
- this.targetException = targetException;
+ target = targetException;
}
/**
@@ -70,7 +80,7 @@ public class InvocationTargetException extends Exception
public InvocationTargetException(Throwable targetException, String err)
{
super(err);
- this.targetException = targetException;
+ target = targetException;
}
/**
@@ -80,53 +90,30 @@ public class InvocationTargetException extends Exception
*/
public Throwable getTargetException()
{
- return targetException;
+ return target;
}
public void printStackTrace()
{
- if (targetException == null)
+ if (target == null)
super.printStackTrace();
else
- targetException.printStackTrace();
+ target.printStackTrace();
}
public void printStackTrace(PrintStream ps)
{
- if (targetException == null)
+ if (target == null)
super.printStackTrace(ps);
else
- targetException.printStackTrace(ps);
+ target.printStackTrace(ps);
}
public void printStackTrace(PrintWriter pw)
{
- if (targetException == null)
+ if (target == null)
super.printStackTrace(pw);
else
- targetException.printStackTrace(pw);
- }
-
- /**
- * Serialize the object in a manner binary compatible with the JDK 1.2
- */
- private void writeObject(java.io.ObjectOutputStream s)
- throws IOException
- {
- ObjectOutputStream.PutField oFields;
- oFields = s.putFields();
- oFields.put("target", targetException);
- s.writeFields();
- }
-
- /**
- * Deserialize the object in a manner binary compatible with the JDK 1.2
- */
- private void readObject(java.io.ObjectInputStream s)
- throws IOException, ClassNotFoundException
- {
- ObjectInputStream.GetField oFields;
- oFields = s.readFields();
- targetException = (Throwable)oFields.get("target", (Throwable)null);
+ target.printStackTrace(pw);
}
}
diff --git a/java/net/BindException.java b/java/net/BindException.java
index 6c6d8a92f..3aeedd3e6 100644
--- a/java/net/BindException.java
+++ b/java/net/BindException.java
@@ -1,5 +1,5 @@
/* BindException.java -- An exception occured while binding to a socket
- Copyright (C) 1998,2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,10 +27,18 @@ executable file might be covered by the GNU General Public License. */
package java.net;
/**
+ * Written using on-line Java Platform 1.2 API Specification, as well
+ * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
+ * Status: Believed complete and correct.
+ */
+
+/**
* This exception indicates that an error occured while attempting to bind
* socket to a particular port.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date March 5, 1999.
*/
public class BindException extends SocketException
{
diff --git a/java/net/ConnectException.java b/java/net/ConnectException.java
index 2800bb233..0ac64c888 100644
--- a/java/net/ConnectException.java
+++ b/java/net/ConnectException.java
@@ -1,5 +1,5 @@
/* ConnectException.java -- An exception occured while connecting to a host
- Copyright (C) 1998,2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,11 +28,19 @@ executable file might be covered by the GNU General Public License. */
package java.net;
/**
+ * Written using on-line Java Platform 1.2 API Specification, as well
+ * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
+ * Status: Believed complete and correct.
+ */
+
+/**
* This exception indicates that an error occured while attempting to
* connect to a remote host. Often this indicates that the remote host
* refused the connection (ie, is not listening on the target socket).
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date March 5, 1999.
*/
public class ConnectException extends SocketException
{
diff --git a/java/net/MalformedURLException.java b/java/net/MalformedURLException.java
index d7535356d..660f253de 100644
--- a/java/net/MalformedURLException.java
+++ b/java/net/MalformedURLException.java
@@ -1,5 +1,5 @@
/* MalformedURLException.java -- A URL was not in a valid format
- Copyright (C) 1998,2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,10 +27,18 @@ executable file might be covered by the GNU General Public License. */
package java.net;
/**
+ * Written using on-line Java Platform 1.2 API Specification, as well
+ * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
+ * Status: Believed complete and correct.
+ */
+
+/**
* This exception indicates that a URL passed to an object was not in a
* valid format.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date March 5, 1999.
*/
public class MalformedURLException extends java.io.IOException
{
diff --git a/java/net/NoRouteToHostException.java b/java/net/NoRouteToHostException.java
index 436c34a98..bae9fa9f0 100644
--- a/java/net/NoRouteToHostException.java
+++ b/java/net/NoRouteToHostException.java
@@ -1,5 +1,5 @@
/* NoRouteToHostException.java -- Cannot connect to a host
- Copyright (C) 1998,2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -28,10 +28,18 @@ executable file might be covered by the GNU General Public License. */
package java.net;
/**
+ * Written using on-line Java Platform 1.2 API Specification, as well
+ * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
+ * Status: Believed complete and correct.
+ */
+
+/**
* This exception indicates that there is no TCP/IP route to the requested
* host. This is often due to a misconfigured routing table.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date March 5, 1999.
*/
public class NoRouteToHostException extends SocketException
{
diff --git a/java/net/ProtocolException.java b/java/net/ProtocolException.java
index 04fbecda9..5556f28ab 100644
--- a/java/net/ProtocolException.java
+++ b/java/net/ProtocolException.java
@@ -1,5 +1,5 @@
/* ProtocolException.java -- A low level protocol error occured
- Copyright (C) 1998,2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,11 +27,19 @@ executable file might be covered by the GNU General Public License. */
package java.net;
/**
+ * Written using on-line Java Platform 1.2 API Specification, as well
+ * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
+ * Status: Believed complete and correct.
+ */
+
+/**
* This exception indicates that some sort of low level protocol
* exception occured. Look in the descriptive message (if any) for
* details on what went wrong
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date March 5, 1999.
*/
public class ProtocolException extends java.io.IOException
{
diff --git a/java/net/SocketException.java b/java/net/SocketException.java
index 09b1689fe..37135f3a5 100644
--- a/java/net/SocketException.java
+++ b/java/net/SocketException.java
@@ -1,5 +1,5 @@
/* SocketException.java -- An exception occured while performing a socket op
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -26,12 +26,18 @@ executable file might be covered by the GNU General Public License. */
package java.net;
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Believed complete and correct.
+ */
+
/**
* This exception indicates that a generic error occured related to an
* operation on a socket. Check the descriptive message (if any) for
* details on the nature of this error
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Per Bothner
+ * @date January 6, 1999.
*/
public class SocketException extends java.io.IOException
{
diff --git a/java/net/UnknownHostException.java b/java/net/UnknownHostException.java
index a5c94e205..ad7b25a94 100644
--- a/java/net/UnknownHostException.java
+++ b/java/net/UnknownHostException.java
@@ -1,5 +1,5 @@
/* UnknownHostException.java -- The hostname is not unknown
- Copyright (C) 1998,2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -26,6 +26,11 @@ executable file might be covered by the GNU General Public License. */
package java.net;
+/*
+ * Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
/**
* This exception indicates that an attempt was made to reference a hostname
* or IP address that is not valid. This could possibly indicate that a
@@ -33,6 +38,8 @@ package java.net;
* correctly specified.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Per Bothner
+ * @date January 6, 1999.
*/
public class UnknownHostException extends java.io.IOException
{
diff --git a/java/net/UnknownServiceException.java b/java/net/UnknownServiceException.java
index c2427d8d2..f82607a50 100644
--- a/java/net/UnknownServiceException.java
+++ b/java/net/UnknownServiceException.java
@@ -1,5 +1,5 @@
/* UnknownServiceException.java -- A service error occured
- Copyright (C) 1998,2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,12 +27,20 @@ executable file might be covered by the GNU General Public License. */
package java.net;
/**
+ * Written using on-line Java Platform 1.2 API Specification, as well
+ * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
+ * Status: Believed complete and correct.
+ */
+
+/**
* Contrary to what you might think, this does not indicate that the
* TCP/IP service name specified was invalid. Instead it indicates that
* the MIME type returned from a URL could not be determined or that an
* attempt was made to write to a read-only URL.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date March 5, 1999.
*/
public class UnknownServiceException extends java.io.IOException
{
diff --git a/java/text/ParseException.java b/java/text/ParseException.java
index 8be3c380a..fd7971a7c 100644
--- a/java/text/ParseException.java
+++ b/java/text/ParseException.java
@@ -1,5 +1,5 @@
/* ParseException.java -- An error occurred while parsing.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -27,12 +27,19 @@ executable file might be covered by the GNU General Public License. */
package java.text;
+/* Written using "Java Class Libraries", 2nd edition, plus online
+ * API docs for JDK 1.2 beta from http://www.javasoft.com.
+ * Status: Believed complete and correct.
+ */
+
/**
* This exception is thrown when an unexpected error occurs during parsing.
*
* @version 0.0
*
* @author Aaron M. Renn (arenn@urbanophile.com)
+ * @author Per Bothner <bothner@cygnus.com>
+ * @date October 25, 1998.
*/
public class ParseException extends Exception
{
@@ -44,7 +51,7 @@ public class ParseException extends Exception
/**
* This is the position where the error was encountered.
*/
-private int offset;
+private int errorOffset;
/*************************************************************************/
@@ -64,7 +71,7 @@ ParseException(String s, int offset)
{
super(s);
- this.offset = offset;
+ errorOffset = offset;
}
/*************************************************************************/
@@ -77,7 +84,7 @@ ParseException(String s, int offset)
public int
getErrorOffset()
{
- return(offset);
+ return(errorOffset);
}
} // class ParseException