Makefile.in: Rebuilt.
* Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added UnsupportedClassVersionError. * java/lang/UnsupportedClassVersionError.java: New file from Classpath. * java/io/CharConversionException.java, java/io/EOFException.java, java/io/FileNotFoundException.java, java/io/IOException.java, java/io/InterruptedIOException.java, java/io/ObjectStreamException.java, java/io/OptionalDataException.java, java/io/StreamCorruptedException.java, java/io/SyncFailedException.java, java/io/UTFDataFormatException.java, java/io/UnsupportedEncodingException.java, java/lang/AbstractMethodError.java, java/lang/ArithmeticException.java, java/lang/ArrayIndexOutOfBoundsException.java, java/lang/ArrayStoreException.java, java/lang/ClassCastException.java, java/lang/ClassCircularityError.java, java/lang/ClassFormatError.java, java/lang/CloneNotSupportedException.java, java/lang/Error.java, java/lang/Exception.java, java/lang/ExceptionInInitializerError.java, java/lang/IllegalAccessError.java, java/lang/IllegalAccessException.java, java/lang/IllegalArgumentException.java, java/lang/IllegalMonitorStateException.java, java/lang/IllegalStateException.java, java/lang/IllegalThreadStateException.java, java/lang/IncompatibleClassChangeError.java, java/lang/IndexOutOfBoundsException.java, java/lang/InstantiationError.java, java/lang/InstantiationException.java, java/lang/InternalError.java, java/lang/InterruptedException.java, java/lang/LinkageError.java, java/lang/NegativeArraySizeException.java, java/lang/NoClassDefFoundError.java, java/lang/NoSuchFieldError.java, java/lang/NoSuchFieldException.java, java/lang/NoSuchMethodError.java, java/lang/NoSuchMethodException.java, java/lang/NullPointerException.java, java/lang/NumberFormatException.java, java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java, java/lang/SecurityException.java, java/lang/StackOverflowError.java, java/lang/StringIndexOutOfBoundsException.java, java/lang/ThreadDeath.java, java/lang/UnknownError.java, java/lang/UnsatisfiedLinkError.java, java/lang/UnsupportedOperationException.java, java/lang/VerifyError.java, java/lang/VirtualMachineError.java, java/lang/reflect/InvocationTargetException.java, java/net/BindException.java, java/net/ConnectException.java, java/net/MalformedURLException.java, java/net/NoRouteToHostException.java, java/net/ProtocolException.java, java/net/SocketException.java, java/net/UnknownHostException.java, java/net/UnknownServiceException.java, java/text/ParseException.java: Copied from Classpath, thanks to Mark Wielaard who did the merge. * java/lang/System.java (getProperty): Use single argument form of SecurityManager.checkPropertyAccess. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added VMSecurityManager. * java/lang/VMSecurityManager.java: New file. * java/lang/SecurityManager.java: Merged with Classpath. From-SVN: r45353
This commit is contained in:
parent
9e0e11bfe4
commit
7eee682ba8
70 changed files with 4654 additions and 1547 deletions
|
@ -1,3 +1,75 @@
|
||||||
|
2001-09-01 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.in: Rebuilt.
|
||||||
|
* Makefile.am (core_java_source_files): Added
|
||||||
|
UnsupportedClassVersionError.
|
||||||
|
* java/lang/UnsupportedClassVersionError.java: New file from
|
||||||
|
Classpath.
|
||||||
|
|
||||||
|
* java/io/CharConversionException.java, java/io/EOFException.java,
|
||||||
|
java/io/FileNotFoundException.java, java/io/IOException.java,
|
||||||
|
java/io/InterruptedIOException.java,
|
||||||
|
java/io/ObjectStreamException.java,
|
||||||
|
java/io/OptionalDataException.java,
|
||||||
|
java/io/StreamCorruptedException.java,
|
||||||
|
java/io/SyncFailedException.java,
|
||||||
|
java/io/UTFDataFormatException.java,
|
||||||
|
java/io/UnsupportedEncodingException.java,
|
||||||
|
java/lang/AbstractMethodError.java,
|
||||||
|
java/lang/ArithmeticException.java,
|
||||||
|
java/lang/ArrayIndexOutOfBoundsException.java,
|
||||||
|
java/lang/ArrayStoreException.java,
|
||||||
|
java/lang/ClassCastException.java,
|
||||||
|
java/lang/ClassCircularityError.java,
|
||||||
|
java/lang/ClassFormatError.java,
|
||||||
|
java/lang/CloneNotSupportedException.java, java/lang/Error.java,
|
||||||
|
java/lang/Exception.java,
|
||||||
|
java/lang/ExceptionInInitializerError.java,
|
||||||
|
java/lang/IllegalAccessError.java,
|
||||||
|
java/lang/IllegalAccessException.java,
|
||||||
|
java/lang/IllegalArgumentException.java,
|
||||||
|
java/lang/IllegalMonitorStateException.java,
|
||||||
|
java/lang/IllegalStateException.java,
|
||||||
|
java/lang/IllegalThreadStateException.java,
|
||||||
|
java/lang/IncompatibleClassChangeError.java,
|
||||||
|
java/lang/IndexOutOfBoundsException.java,
|
||||||
|
java/lang/InstantiationError.java,
|
||||||
|
java/lang/InstantiationException.java,
|
||||||
|
java/lang/InternalError.java, java/lang/InterruptedException.java,
|
||||||
|
java/lang/LinkageError.java,
|
||||||
|
java/lang/NegativeArraySizeException.java,
|
||||||
|
java/lang/NoClassDefFoundError.java,
|
||||||
|
java/lang/NoSuchFieldError.java,
|
||||||
|
java/lang/NoSuchFieldException.java,
|
||||||
|
java/lang/NoSuchMethodError.java,
|
||||||
|
java/lang/NoSuchMethodException.java,
|
||||||
|
java/lang/NullPointerException.java,
|
||||||
|
java/lang/NumberFormatException.java,
|
||||||
|
java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
|
||||||
|
java/lang/SecurityException.java,
|
||||||
|
java/lang/StackOverflowError.java,
|
||||||
|
java/lang/StringIndexOutOfBoundsException.java,
|
||||||
|
java/lang/ThreadDeath.java, java/lang/UnknownError.java,
|
||||||
|
java/lang/UnsatisfiedLinkError.java,
|
||||||
|
java/lang/UnsupportedOperationException.java,
|
||||||
|
java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
|
||||||
|
java/lang/reflect/InvocationTargetException.java,
|
||||||
|
java/net/BindException.java, java/net/ConnectException.java,
|
||||||
|
java/net/MalformedURLException.java,
|
||||||
|
java/net/NoRouteToHostException.java,
|
||||||
|
java/net/ProtocolException.java, java/net/SocketException.java,
|
||||||
|
java/net/UnknownHostException.java,
|
||||||
|
java/net/UnknownServiceException.java,
|
||||||
|
java/text/ParseException.java: Copied from Classpath, thanks to
|
||||||
|
Mark Wielaard who did the merge.
|
||||||
|
|
||||||
|
* java/lang/System.java (getProperty): Use single argument form of
|
||||||
|
SecurityManager.checkPropertyAccess.
|
||||||
|
* Makefile.in: Rebuilt.
|
||||||
|
* Makefile.am (core_java_source_files): Added VMSecurityManager.
|
||||||
|
* java/lang/VMSecurityManager.java: New file.
|
||||||
|
* java/lang/SecurityManager.java: Merged with Classpath.
|
||||||
|
|
||||||
2001-08-31 Per Bothner <per@bothner.com>
|
2001-08-31 Per Bothner <per@bothner.com>
|
||||||
|
|
||||||
* gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
|
* gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
|
||||||
|
|
|
@ -965,10 +965,12 @@ java/lang/ThreadLocal.java \
|
||||||
java/lang/Throwable.java \
|
java/lang/Throwable.java \
|
||||||
java/lang/UnknownError.java \
|
java/lang/UnknownError.java \
|
||||||
java/lang/UnsatisfiedLinkError.java \
|
java/lang/UnsatisfiedLinkError.java \
|
||||||
|
java/lang/UnsupportedClassVersionError.java \
|
||||||
java/lang/UnsupportedOperationException.java \
|
java/lang/UnsupportedOperationException.java \
|
||||||
java/lang/VerifyError.java \
|
java/lang/VerifyError.java \
|
||||||
java/lang/VirtualMachineError.java \
|
java/lang/VirtualMachineError.java \
|
||||||
java/lang/VMClassLoader.java \
|
java/lang/VMClassLoader.java \
|
||||||
|
java/lang/VMSecurityManager.java \
|
||||||
java/lang/Void.java \
|
java/lang/Void.java \
|
||||||
java/io/BufferedInputStream.java \
|
java/io/BufferedInputStream.java \
|
||||||
java/io/BufferedOutputStream.java \
|
java/io/BufferedOutputStream.java \
|
||||||
|
|
|
@ -720,10 +720,12 @@ java/lang/ThreadLocal.java \
|
||||||
java/lang/Throwable.java \
|
java/lang/Throwable.java \
|
||||||
java/lang/UnknownError.java \
|
java/lang/UnknownError.java \
|
||||||
java/lang/UnsatisfiedLinkError.java \
|
java/lang/UnsatisfiedLinkError.java \
|
||||||
|
java/lang/UnsupportedClassVersionError.java \
|
||||||
java/lang/UnsupportedOperationException.java \
|
java/lang/UnsupportedOperationException.java \
|
||||||
java/lang/VerifyError.java \
|
java/lang/VerifyError.java \
|
||||||
java/lang/VirtualMachineError.java \
|
java/lang/VirtualMachineError.java \
|
||||||
java/lang/VMClassLoader.java \
|
java/lang/VMClassLoader.java \
|
||||||
|
java/lang/VMSecurityManager.java \
|
||||||
java/lang/Void.java \
|
java/lang/Void.java \
|
||||||
java/io/BufferedInputStream.java \
|
java/io/BufferedInputStream.java \
|
||||||
java/io/BufferedOutputStream.java \
|
java/io/BufferedOutputStream.java \
|
||||||
|
@ -1798,10 +1800,11 @@ DEP_FILES = .deps/$(srcdir)/$(CONVERT_DIR)/gen-from-JIS.P \
|
||||||
.deps/java/lang/ThreadDeath.P .deps/java/lang/ThreadGroup.P \
|
.deps/java/lang/ThreadDeath.P .deps/java/lang/ThreadGroup.P \
|
||||||
.deps/java/lang/ThreadLocal.P .deps/java/lang/Throwable.P \
|
.deps/java/lang/ThreadLocal.P .deps/java/lang/Throwable.P \
|
||||||
.deps/java/lang/UnknownError.P .deps/java/lang/UnsatisfiedLinkError.P \
|
.deps/java/lang/UnknownError.P .deps/java/lang/UnsatisfiedLinkError.P \
|
||||||
|
.deps/java/lang/UnsupportedClassVersionError.P \
|
||||||
.deps/java/lang/UnsupportedOperationException.P \
|
.deps/java/lang/UnsupportedOperationException.P \
|
||||||
.deps/java/lang/VMClassLoader.P .deps/java/lang/VerifyError.P \
|
.deps/java/lang/VMClassLoader.P .deps/java/lang/VMSecurityManager.P \
|
||||||
.deps/java/lang/VirtualMachineError.P .deps/java/lang/Void.P \
|
.deps/java/lang/VerifyError.P .deps/java/lang/VirtualMachineError.P \
|
||||||
.deps/java/lang/dtoa.P .deps/java/lang/e_acos.P \
|
.deps/java/lang/Void.P .deps/java/lang/dtoa.P .deps/java/lang/e_acos.P \
|
||||||
.deps/java/lang/e_asin.P .deps/java/lang/e_atan2.P \
|
.deps/java/lang/e_asin.P .deps/java/lang/e_atan2.P \
|
||||||
.deps/java/lang/e_exp.P .deps/java/lang/e_fmod.P \
|
.deps/java/lang/e_exp.P .deps/java/lang/e_fmod.P \
|
||||||
.deps/java/lang/e_log.P .deps/java/lang/e_pow.P \
|
.deps/java/lang/e_log.P .deps/java/lang/e_pow.P \
|
||||||
|
|
|
@ -1,34 +1,75 @@
|
||||||
// CharConversionException.java - Problem converting char to byte encoding.
|
/* CharConversionException.java -- Character conversion exceptions
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date September 25, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Complete to 1.1.
|
* Status: Complete to 1.1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This exception is thrown to indicate that a problem occured with
|
||||||
|
* an attempted character conversion.
|
||||||
|
*
|
||||||
|
* @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
|
public class CharConversionException extends IOException
|
||||||
{
|
{
|
||||||
public CharConversionException ()
|
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public CharConversionException (String s)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super (s);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new CharConversionException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
CharConversionException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new CharConversionException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
CharConversionException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class CharConversionException
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,79 @@
|
||||||
// EOFException.java - End of file exception
|
/* EOFException.java -- Unexpected end of file exception
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date September 24, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Complete to 1.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
|
||||||
|
* EOF condition is reported. Normally a special value such as -1 is
|
||||||
|
* returned. However, certain types of streams expecting certain data
|
||||||
|
* in a certain format might reach EOF before reading their expected
|
||||||
|
* data pattern and thus throw this exception.
|
||||||
|
*
|
||||||
|
* @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
|
public class EOFException extends IOException
|
||||||
{
|
{
|
||||||
public EOFException ()
|
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public EOFException (String s)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super (s);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new EOFException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
EOFException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new EOFException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
EOFException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class EOFException
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,75 @@
|
||||||
// FileNotFoundException.java
|
/* FileNotFoundException.java -- The requested file could not be found
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date September 24, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Complete to 1.1.
|
* Status: Complete to 1.1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This exception is thrown when an attempt is made to access a file that
|
||||||
|
* does not exist.
|
||||||
|
*
|
||||||
|
* @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
|
public class FileNotFoundException extends IOException
|
||||||
{
|
{
|
||||||
public FileNotFoundException ()
|
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public FileNotFoundException (String s)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super (s);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new FileNotFoundException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
FileNotFoundException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new FileNotFoundException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
FileNotFoundException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class FileNotFoundException
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,77 @@
|
||||||
// IOException.java - Base class for I/O Exceptions
|
/* IOException.java -- Generic input/output exception
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date September 24, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Complete to 1.1.
|
* Status: Complete to 1.1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This exception is thrown to indicate an I/O problem of some sort
|
||||||
|
* occurred. Since this is a fairly generic exception, often a subclass
|
||||||
|
* of IOException will actually be thrown in order to provide a more
|
||||||
|
* detailed indication of what happened.
|
||||||
|
*
|
||||||
|
* @version 0.0
|
||||||
|
*
|
||||||
|
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date September 24, 1998
|
||||||
|
*/
|
||||||
public class IOException extends Exception
|
public class IOException extends Exception
|
||||||
{
|
{
|
||||||
public IOException ()
|
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IOException (String s)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super (s);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new IOException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
IOException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new IOException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
IOException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class IOException
|
||||||
|
|
||||||
|
|
|
@ -1,36 +1,104 @@
|
||||||
// InterruptedIOException.java
|
/* InterruptedIOException.java -- An I/O operation was interrupted.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date September 24, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Complete to 1.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
|
||||||
|
* the number of bytes that were read/written prior to the interruption.
|
||||||
|
*
|
||||||
|
* @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
|
public class InterruptedIOException extends IOException
|
||||||
{
|
{
|
||||||
public InterruptedIOException ()
|
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public InterruptedIOException (String s)
|
private static final long serialVersionUID = 4020568460727500567L;
|
||||||
{
|
|
||||||
super (s);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int bytesTransferred = 0;
|
/*
|
||||||
|
* Instance Variables
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The number of bytes read/written prior to the interruption
|
||||||
|
*/
|
||||||
|
public int bytesTransferred;
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Constructors
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new InterruptedIOException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
InterruptedIOException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new InterruptedIOException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
InterruptedIOException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new InterruptedIOException with a descriptive error message
|
||||||
|
* String. Also sets the value of the bytesTransferred field.
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
* @param bytesTransferred The number of bytes tranferred before the interruption
|
||||||
|
*/
|
||||||
|
InterruptedIOException(String message, int bytesTransferred)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
this.bytesTransferred = bytesTransferred;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class InterruptedIOException
|
||||||
|
|
||||||
|
|
|
@ -1,31 +1,75 @@
|
||||||
/* Copyright (C) 2000 Free Software Foundation
|
/* ObjectStreamException.java -- Superclass of all serialisation exceptions
|
||||||
|
Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date February 7, 2000.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using on-line Java Platform 1.2 API Specification.
|
/* Written using on-line Java Platform 1.2 API Specification.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract class ObjectStreamException extends IOException
|
/**
|
||||||
|
* This exception is thrown when a problem occurs during serialization.
|
||||||
|
* There are more specific subclasses than give more fine grained
|
||||||
|
* indications of the precise failure.
|
||||||
|
*
|
||||||
|
* @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
|
||||||
{
|
{
|
||||||
protected ObjectStreamException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected ObjectStreamException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new ObjectStreamException without a descriptive error message
|
||||||
|
*/
|
||||||
|
protected
|
||||||
|
ObjectStreamException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new ObjectStreamException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
protected
|
||||||
|
ObjectStreamException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class ObjectStreamException
|
||||||
|
|
||||||
|
|
|
@ -1,31 +1,74 @@
|
||||||
/* Copyright (C) 2000 Free Software Foundation
|
/* StreamCorruptedException.java -- Error in stream during serialization
|
||||||
|
Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date February 7, 2000.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using on-line Java Platform 1.2 API Specification.
|
/* Written using on-line Java Platform 1.2 API Specification.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
*
|
||||||
|
* @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
|
public class StreamCorruptedException extends ObjectStreamException
|
||||||
{
|
{
|
||||||
public StreamCorruptedException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StreamCorruptedException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new StreamCorruptedException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
StreamCorruptedException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new StreamCorruptedException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
StreamCorruptedException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class StreamCorruptedException
|
||||||
|
|
||||||
|
|
|
@ -1,29 +1,75 @@
|
||||||
// SyncFailedException.java
|
/* SyncFailedException.java -- The sync failed (?)
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date September 24, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Complete to 1.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
|
public class SyncFailedException extends IOException
|
||||||
{
|
{
|
||||||
public SyncFailedException (String s)
|
|
||||||
{
|
private static final long serialVersionUID = -2353342684412443330L;
|
||||||
super (s);
|
|
||||||
}
|
/*
|
||||||
|
* Constructors
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new SyncFailedException without a descriptive error message
|
||||||
|
*/
|
||||||
|
SyncFailedException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new SyncFailedException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
SyncFailedException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class SyncFailedException
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,75 @@
|
||||||
// UTFDataFormatException.java
|
/* UTFDataFormatException.java -- Bad format in UTF data
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.io;
|
package java.io;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date September 24, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Complete to 1.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.
|
||||||
|
*
|
||||||
|
* @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
|
public class UTFDataFormatException extends IOException
|
||||||
{
|
{
|
||||||
public UTFDataFormatException ()
|
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UTFDataFormatException (String s)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super (s);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new UTFDataFormatException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UTFDataFormatException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new UTFDataFormatException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UTFDataFormatException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class UTFDataFormatException
|
||||||
|
|
||||||
|
|
|
@ -1,32 +1,75 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* UnsupportedEncodingException.java -- The requested encoding isn't supported
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
package java.io;
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
/**
|
You should have received a copy of the GNU General Public License
|
||||||
* @author Per Bothner <bothner@cygnus.com>
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
* @date April 17, 1998.
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
*/
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
|
package java.io;
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, plus online
|
/* Written using "Java Class Libraries", 2nd edition, plus online
|
||||||
* API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This exception is thrown when the requested character encoding is
|
||||||
|
* not supported.
|
||||||
|
*
|
||||||
|
* @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
|
public class UnsupportedEncodingException extends IOException
|
||||||
{
|
{
|
||||||
public UnsupportedEncodingException ()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UnsupportedEncodingException (String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Create a new UnsupportedEncodingException without a descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UnsupportedEncodingException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new UnsupportedEncodingException with a descriptive error message String
|
||||||
|
*
|
||||||
|
* @param message The descriptive error message
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UnsupportedEncodingException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class UnsupportedEncodingException
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,67 @@
|
||||||
// AbstractMethodError.java
|
/* AbstractMethodError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An <code>AbstractMethodError</code> is thrown when an application
|
||||||
|
* attempts to access an abstract method. Compilers typically detect
|
||||||
|
* this error, but it can be thrown at run time if the definition of a
|
||||||
|
* class has changed since the application was last compiled.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class AbstractMethodError extends IncompatibleClassChangeError
|
public class AbstractMethodError extends IncompatibleClassChangeError
|
||||||
{
|
{
|
||||||
public AbstractMethodError ()
|
static final long serialVersionUID = -1654391082989018462L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public AbstractMethodError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public AbstractMethodError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public AbstractMethodError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,68 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* ArithmeticException.java -- exception thrown to indicate conditions
|
||||||
|
like divide by zero.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* In this case an ArithmeticException is thrown when things like trying
|
||||||
|
* to divide a number by zero.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class ArithmeticException extends RuntimeException
|
public class ArithmeticException extends RuntimeException
|
||||||
{
|
{
|
||||||
public ArithmeticException()
|
static final long serialVersionUID = 2256477558314496007L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArithmeticException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public ArithmeticException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public ArithmeticException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,37 +1,76 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* ArrayIndexOutOfBoundsException.java -- exception thrown when accessing
|
||||||
|
an illegal index.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* when trying to access an illegal index. This exception is thrown when
|
||||||
|
* accessing an index which is either negative or greater than the size of
|
||||||
|
* the array minus one.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
|
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
|
||||||
{
|
{
|
||||||
public ArrayIndexOutOfBoundsException()
|
static final long serialVersionUID = -5116101128118950844L;
|
||||||
{
|
|
||||||
|
/**
|
||||||
|
* Create an exception without a message.
|
||||||
|
*/
|
||||||
|
public ArrayIndexOutOfBoundsException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayIndexOutOfBoundsException(int index)
|
/**
|
||||||
{
|
* Create an exception with a message.
|
||||||
this("Array index out of range: " + index);
|
*/
|
||||||
|
public ArrayIndexOutOfBoundsException(String s) {
|
||||||
|
super(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayIndexOutOfBoundsException(String msg)
|
/**
|
||||||
{
|
* Create an exception indicating the illegal index.
|
||||||
super(msg);
|
*/
|
||||||
|
public ArrayIndexOutOfBoundsException(int index) {
|
||||||
|
super("Array index out of range: " + index);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,67 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* ArrayStoreException.java -- exception thrown to when trying to store an
|
||||||
|
object into an array of a different type.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* when trying to store an object into an array of a different type.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class ArrayStoreException extends RuntimeException
|
public class ArrayStoreException extends RuntimeException
|
||||||
{
|
{
|
||||||
public ArrayStoreException()
|
static final long serialVersionUID = -4522193890499838241L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayStoreException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public ArrayStoreException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public ArrayStoreException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,72 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* ClassCastException.java -- exception thrown when incorrectly trying to
|
||||||
|
cast an object to a subclass it does not belong to.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* when incorrectly trying to cast an object to a subclass it does not
|
||||||
|
* belong to. The following code generates a <code>ClassCastException</code>.
|
||||||
|
* <pre>
|
||||||
|
* Object o = new Vector();
|
||||||
|
* String s = (String)o;
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class ClassCastException extends RuntimeException
|
public class ClassCastException extends RuntimeException
|
||||||
{
|
{
|
||||||
public ClassCastException()
|
static final long serialVersionUID = -9223365651070458532L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ClassCastException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public ClassCastException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public ClassCastException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,65 @@
|
||||||
// ClassCircularityError.java
|
/* ClassCircularityError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A <code>ClassCircularityError</code> is thrown when a circular dependency
|
||||||
|
* has been detected while initializing a class.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class ClassCircularityError extends LinkageError
|
public class ClassCircularityError extends LinkageError
|
||||||
{
|
{
|
||||||
public ClassCircularityError ()
|
static final long serialVersionUID = 1054362542914539689L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ClassCircularityError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public ClassCircularityError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public ClassCircularityError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,64 @@
|
||||||
// ClassFormatError.java
|
/* ClassFormatError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* interpreted as a class file.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
*/
|
||||||
public class ClassFormatError extends LinkageError
|
public class ClassFormatError extends LinkageError
|
||||||
{
|
{
|
||||||
public ClassFormatError ()
|
static final long serialVersionUID = -8420114879011949195L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ClassFormatError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public ClassFormatError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public ClassFormatError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,71 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* CloneNotSupportedException.java -- exception thrown to indicate that
|
||||||
|
the object calling the clone method of Object does not implement the
|
||||||
|
Cloneable interface.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Thrown to indicate an object should not or could not be cloned.
|
||||||
|
* For example <code>CloneNotSupportedException</code> is thrown by
|
||||||
|
* the <code>clone</code> method of <code>Object</code> to indicate
|
||||||
|
* that object does not implement the <code>Cloneable</code> interface.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class CloneNotSupportedException extends Exception
|
public class CloneNotSupportedException extends Exception
|
||||||
{
|
{
|
||||||
public CloneNotSupportedException()
|
static final long serialVersionUID = 5195511250079656443L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public CloneNotSupportedException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public CloneNotSupportedException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public CloneNotSupportedException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,71 @@
|
||||||
// Error.java
|
/* Error.java - Indication of fatal abnormal conditions
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* occur. A few errors, like <code>ThreadDeath</code> error do normally
|
||||||
|
* occur, but most applications should not catch it.
|
||||||
|
* <p>
|
||||||
|
* A method is not required to declare any subclass of <code>Error</code> in
|
||||||
|
* its <code>throws</code> clause which might be thrown but not caught while
|
||||||
|
* executing the method..
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class Error extends Throwable
|
public class Error extends Throwable
|
||||||
{
|
{
|
||||||
public Error ()
|
static final long serialVersionUID = 4980196508277280342L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Error (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public Error()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public Error(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,67 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* Exception.java -- generic exception thrown to indicate an exceptional
|
||||||
|
condition has occurred.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* mouse movements, keyboard clicking, etc.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class Exception extends Throwable
|
public class Exception extends Throwable
|
||||||
{
|
{
|
||||||
public Exception()
|
static final long serialVersionUID = -3387516993124229948L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Exception(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public Exception()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public Exception(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,85 +1,144 @@
|
||||||
// ExceptionInInitializerError.java
|
/* ExceptionInInitializerError.java
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An <code>ExceptionInInitializerError</code> is thrown when an
|
||||||
|
* unexpected exception has occurred in a static initializer or the
|
||||||
|
* initializer for a static variable.
|
||||||
|
*
|
||||||
|
* @since JDK 1.1
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class ExceptionInInitializerError extends LinkageError
|
public class ExceptionInInitializerError extends LinkageError
|
||||||
{
|
{
|
||||||
public ExceptionInInitializerError ()
|
static final long serialVersionUID = 1521711792217232256L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
exception = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ExceptionInInitializerError (String msg)
|
private Throwable exception = null;
|
||||||
{
|
|
||||||
super (msg);
|
|
||||||
exception = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ExceptionInInitializerError (Throwable e)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (e.toString());
|
*/
|
||||||
exception = e;
|
public ExceptionInInitializerError()
|
||||||
}
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
public Throwable getException ()
|
/**
|
||||||
{
|
* Create an error with a message.
|
||||||
return exception;
|
*/
|
||||||
}
|
public ExceptionInInitializerError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
|
|
||||||
public void printStackTrace ()
|
/**
|
||||||
{
|
* Creates an error an saves a reference to the <code>Throwable</code>
|
||||||
if (exception != null)
|
* object.
|
||||||
{
|
*
|
||||||
System.err.print (this.getClass().getName() + ": ");
|
* @param t the exception thrown
|
||||||
exception.printStackTrace ();
|
*/
|
||||||
}
|
public ExceptionInInitializerError(Throwable t)
|
||||||
else
|
{
|
||||||
super.printStackTrace ();
|
super(t.toString());
|
||||||
}
|
exception = t;
|
||||||
|
}
|
||||||
|
|
||||||
public void printStackTrace (PrintStream ps)
|
/**
|
||||||
{
|
* Return the exception that caused this error to be created.
|
||||||
if (exception != null)
|
* @return the stored <code>Throwable</code> object or <code>null</code>
|
||||||
{
|
* if this <code>ExceptionInInitializerError</code> has no stored
|
||||||
ps.print (this.getClass().getName() + ": ");
|
* <code>Throwable</code> object.
|
||||||
exception.printStackTrace (ps);
|
*/
|
||||||
}
|
public Throwable getException()
|
||||||
else
|
{
|
||||||
super.printStackTrace (ps);
|
return exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void printStackTrace (PrintWriter pw)
|
/**
|
||||||
{
|
* Print a stack trace of the exception that occurred.
|
||||||
if (exception != null)
|
*/
|
||||||
{
|
public void printStackTrace()
|
||||||
pw.print (this.getClass().getName() + ": ");
|
{
|
||||||
exception.printStackTrace (pw);
|
if (exception == null)
|
||||||
}
|
{
|
||||||
else
|
super.printStackTrace();
|
||||||
super.printStackTrace (pw);
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
System.err.print(this.getClass() + ": ");
|
||||||
|
exception.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// The exception that caused this error.
|
/**
|
||||||
private Throwable exception;
|
* Print a stack trace of the exception that occurred to
|
||||||
|
* the specified <code>PrintStream</code>.
|
||||||
|
*/
|
||||||
|
public void printStackTrace(PrintStream ps)
|
||||||
|
{
|
||||||
|
if (exception == null)
|
||||||
|
{
|
||||||
|
super.printStackTrace(ps);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ps.print(this.getClass() + ": ");
|
||||||
|
exception.printStackTrace(ps);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print a stack trace of the exception that occurred to
|
||||||
|
* the specified <code>PrintWriter</code>.
|
||||||
|
*/
|
||||||
|
public void printStackTrace(PrintWriter pw)
|
||||||
|
{
|
||||||
|
if (exception == null)
|
||||||
|
{
|
||||||
|
super.printStackTrace(pw);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pw.print(this.getClass() + ": ");
|
||||||
|
exception.printStackTrace(pw);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,69 @@
|
||||||
// IllegalAccessError.java
|
/* IllegalAccessError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* have access to. Because this error is usually caught by a compiler,
|
||||||
|
* the error only occurs at runtime when the definition of a class has
|
||||||
|
* changed in a way that is incompatible with the previously compiled
|
||||||
|
* application.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class IllegalAccessError extends IncompatibleClassChangeError
|
public class IllegalAccessError extends IncompatibleClassChangeError
|
||||||
{
|
{
|
||||||
public IllegalAccessError ()
|
static final long serialVersionUID = -8988904074992417891L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IllegalAccessError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public IllegalAccessError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public IllegalAccessError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,72 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* IllegalAccessException.java -- exception thrown when trying to load a
|
||||||
|
class that is not public and in another package.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Thrown in two cases. The first is when try to load a class that is
|
||||||
|
* not public and in another package using specific methods from
|
||||||
|
* <code>ClassLoader</code> and <code>Class</code>. The second case is
|
||||||
|
* when trying to create a new instance of a class to which you do not have
|
||||||
|
* access to the zero argument constructor as in using the
|
||||||
|
* <code>newsInstance</code> method of class <code>Class</code>.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class IllegalAccessException extends Exception
|
public class IllegalAccessException extends Exception
|
||||||
{
|
{
|
||||||
public IllegalAccessException()
|
static final long serialVersionUID = 6616958222490762034L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IllegalAccessException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public IllegalAccessException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public IllegalAccessException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,67 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* IllegalArgumentException.java -- exception may be thrown when a method
|
||||||
|
is passed an illegal or inappropriate argument.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* When a method is passed an illegal or inappropriate argument
|
||||||
|
* this exception may be thrown.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class IllegalArgumentException extends RuntimeException
|
public class IllegalArgumentException extends RuntimeException
|
||||||
{
|
{
|
||||||
|
static final long serialVersionUID = -5365630128856068164L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception without a message.
|
||||||
|
*/
|
||||||
public IllegalArgumentException()
|
public IllegalArgumentException()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public IllegalArgumentException(String msg)
|
/**
|
||||||
{
|
* Create an exception with a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public IllegalArgumentException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,70 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* IllegalMonitorStateException.java -- exception thrown when a thread
|
||||||
|
attempts to wait on an object's monitor.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* If a thread attempts to wait on an object's monitor then
|
||||||
|
* <code>IllegalMonitorStateException</code> can be thrown. This
|
||||||
|
* exception is also thrown to give a message to other threads also waiting
|
||||||
|
* on an object's monitor without owning the monitor.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class IllegalMonitorStateException extends RuntimeException
|
public class IllegalMonitorStateException extends RuntimeException
|
||||||
{
|
{
|
||||||
public IllegalMonitorStateException()
|
static final long serialVersionUID = 3713306369498869069L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IllegalMonitorStateException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public IllegalMonitorStateException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public IllegalMonitorStateException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,68 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* IllegalStateException.java -- exception thrown when invoking a method at
|
||||||
|
an illegal or inappropriate time.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Invoking a method at an illegal or inappropriate time can result
|
||||||
|
* in an <code>IllegalStateException</code>.
|
||||||
|
*
|
||||||
|
* @since JDK 1.1
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class IllegalStateException extends RuntimeException
|
public class IllegalStateException extends RuntimeException
|
||||||
{
|
{
|
||||||
public IllegalStateException()
|
static final long serialVersionUID = -1848914673093119416L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IllegalStateException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public IllegalStateException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public IllegalStateException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,69 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* 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, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* When trying to <code>suspend</code> or <code>resume</code> an object
|
||||||
|
* of class <code>Thread</code> when it is not in an appropriate state
|
||||||
|
* for the operation.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class IllegalThreadStateException extends IllegalArgumentException
|
public class IllegalThreadStateException extends IllegalArgumentException
|
||||||
{
|
{
|
||||||
public IllegalThreadStateException()
|
static final long serialVersionUID = -7626246362397460174L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IllegalThreadStateException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public IllegalThreadStateException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public IllegalThreadStateException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,66 @@
|
||||||
// IncompatibleClassChangeError.java
|
/* IncompatibleClassChangeError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An <code>IncompatibleClassChangeError</code> is thrown when the
|
||||||
|
* definition of a class used by the currently executing method has
|
||||||
|
* changed in an incompatible way.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class IncompatibleClassChangeError extends LinkageError
|
public class IncompatibleClassChangeError extends LinkageError
|
||||||
{
|
{
|
||||||
public IncompatibleClassChangeError ()
|
static final long serialVersionUID = -4914975503642802119L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IncompatibleClassChangeError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public IncompatibleClassChangeError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public IncompatibleClassChangeError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,72 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* 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, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* This exception can be thrown to indicate an attempt to access an
|
||||||
|
* index which is out of bounds on objects like String, Array, or Vector.
|
||||||
|
* Usually any negative integer less than or equal to -1 and positive
|
||||||
|
* integer greater than or equal to the size of the object is an index
|
||||||
|
* which would be out of bounds.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class IndexOutOfBoundsException extends RuntimeException
|
public class IndexOutOfBoundsException extends RuntimeException
|
||||||
{
|
{
|
||||||
public IndexOutOfBoundsException()
|
static final long serialVersionUID = 234122996006267687L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public IndexOutOfBoundsException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public IndexOutOfBoundsException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public IndexOutOfBoundsException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,69 @@
|
||||||
// InstantiationError.java
|
/* InstantiationError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* error is usually caught by a compiler,
|
||||||
|
* the error only occurs at runtime when the definition of a class has
|
||||||
|
* changed in a way that is incompatible with the previously compiled
|
||||||
|
* application.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class InstantiationError extends IncompatibleClassChangeError
|
public class InstantiationError extends IncompatibleClassChangeError
|
||||||
{
|
{
|
||||||
public InstantiationError ()
|
static final long serialVersionUID = -4885810657349421204L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public InstantiationError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public InstantiationError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public InstantiationError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,69 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* InstantiationException.java -- exception thrown when trying to instantiate
|
||||||
|
interfaces and abstract classes using the newInstance method of class Class.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Interfaces and abstract classes cannot be instantiated using the
|
||||||
|
* <code>newInstance</code> method of class <code>Class</code>. Trying
|
||||||
|
* to do so results in this exception being thrown.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class InstantiationException extends Exception
|
public class InstantiationException extends Exception
|
||||||
{
|
{
|
||||||
public InstantiationException()
|
static final long serialVersionUID = -8441929162975509110L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public InstantiationException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public InstantiationException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public InstantiationException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,65 @@
|
||||||
// InternalError.java
|
/* InternalError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An <code>InternalError</code> is thrown when a mystical error has
|
||||||
|
* occurred in the Java Virtual Machine.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class InternalError extends VirtualMachineError
|
public class InternalError extends VirtualMachineError
|
||||||
{
|
{
|
||||||
public InternalError ()
|
static final long serialVersionUID = -9062593416125562365L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public InternalError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public InternalError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public InternalError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,70 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* InterruptedException.java -- exception thrown when a thread interrupts
|
||||||
|
another thread which was previously sleeping, waiting, or paused in some
|
||||||
|
other way.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Thrown when a thread interrupts another thread which was previously
|
||||||
|
* sleeping, waiting, or paused in some other way. See the
|
||||||
|
* <code>interrupt</code> method of class <code>Thread</code>.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class InterruptedException extends Exception
|
public class InterruptedException extends Exception
|
||||||
{
|
{
|
||||||
public InterruptedException()
|
static final long serialVersionUID = 6700697376100628473L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public InterruptedException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public InterruptedException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public InterruptedException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,66 @@
|
||||||
// LinkageError.java
|
/* LinkageError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* changed after the compilation of the latter class.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class LinkageError extends Error
|
public class LinkageError extends Error
|
||||||
{
|
{
|
||||||
public LinkageError ()
|
static final long serialVersionUID = 3579600108157160122L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public LinkageError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public LinkageError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public LinkageError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,68 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* NegativeArraySizeException.java -- exception thrown when an attempt is
|
||||||
|
made to create an array with a negative size.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Thrown when an attempt is made to create an array with a negative
|
||||||
|
* size.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class NegativeArraySizeException extends RuntimeException
|
public class NegativeArraySizeException extends RuntimeException
|
||||||
{
|
{
|
||||||
public NegativeArraySizeException()
|
static final long serialVersionUID = -8960118058596991861L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NegativeArraySizeException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public NegativeArraySizeException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public NegativeArraySizeException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,69 @@
|
||||||
// NoClassDefFoundError.java
|
/* NoClassDefFoundError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* can be found. This could happen when using the <code>new</code> expression
|
||||||
|
* or during a normal method call. The reason this would occur at runtime is
|
||||||
|
* because the missing class definition existed when the currently executing
|
||||||
|
* class was compiled, but now that definition cannot be found.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class NoClassDefFoundError extends LinkageError
|
public class NoClassDefFoundError extends LinkageError
|
||||||
{
|
{
|
||||||
public NoClassDefFoundError ()
|
static final long serialVersionUID = 9095859863287012458L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NoClassDefFoundError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public NoClassDefFoundError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public NoClassDefFoundError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,66 @@
|
||||||
// NoSuchFieldError.java
|
/* NoSuchFieldError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* field.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class NoSuchFieldError extends IncompatibleClassChangeError
|
public class NoSuchFieldError extends IncompatibleClassChangeError
|
||||||
{
|
{
|
||||||
public NoSuchFieldError ()
|
static final long serialVersionUID = -3456430195886129035L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NoSuchFieldError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public NoSuchFieldError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public NoSuchFieldError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,67 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* NoSuchFieldException.java -- exception thrown to indicate the class does
|
||||||
|
not have the specified field.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Thrown to indicate the class does not have the specified field.
|
||||||
|
*
|
||||||
|
* @since JDK 1.1
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class NoSuchFieldException extends Exception
|
public class NoSuchFieldException extends Exception
|
||||||
{
|
{
|
||||||
public NoSuchFieldException()
|
static final long serialVersionUID = -6143714805279938260L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NoSuchFieldException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public NoSuchFieldException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public NoSuchFieldException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,66 @@
|
||||||
// NoSuchMethodError.java
|
/* NoSuchMethodError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* method.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class NoSuchMethodError extends IncompatibleClassChangeError
|
public class NoSuchMethodError extends IncompatibleClassChangeError
|
||||||
{
|
{
|
||||||
public NoSuchMethodError ()
|
static final long serialVersionUID = -3765521442372831335L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NoSuchMethodError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public NoSuchMethodError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public NoSuchMethodError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,67 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* NoSuchMethodException.java -- exception thrown to indicate the class
|
||||||
|
does not have the specified method.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Thrown to indicate the class does not have the specified method.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class NoSuchMethodException extends Exception
|
public class NoSuchMethodException extends Exception
|
||||||
{
|
{
|
||||||
public NoSuchMethodException()
|
static final long serialVersionUID = 5034388446362600923L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NoSuchMethodException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public NoSuchMethodException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public NoSuchMethodException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,68 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* NullPointerException.java -- exception thrown when attempting to use null
|
||||||
|
where an object is required.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Thrown when attempting to use <code>null</code> where an object
|
||||||
|
* is required, such as when accessing an instance method of a null object.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class NullPointerException extends RuntimeException
|
public class NullPointerException extends RuntimeException
|
||||||
{
|
{
|
||||||
public NullPointerException()
|
static final long serialVersionUID = 5162710183389028792L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NullPointerException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public NullPointerException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public NullPointerException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,69 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* 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, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* Can be thrown when attempting to convert a <code>String</code> to
|
||||||
|
* one of the numeric types, but the operation fails because the string
|
||||||
|
* has the wrong format.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class NumberFormatException extends IllegalArgumentException
|
public class NumberFormatException extends IllegalArgumentException
|
||||||
{
|
{
|
||||||
public NumberFormatException()
|
static final long serialVersionUID = -2848938806368998894L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NumberFormatException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public NumberFormatException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public NumberFormatException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,66 @@
|
||||||
// OutOfMemoryError.java
|
/* OutOfMemoryError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* garbage collector an <code>OutOfMemoryError</code> is thrown.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class OutOfMemoryError extends VirtualMachineError
|
public class OutOfMemoryError extends VirtualMachineError
|
||||||
{
|
{
|
||||||
public OutOfMemoryError ()
|
static final long serialVersionUID = 8228564086184010517L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public OutOfMemoryError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public OutOfMemoryError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public OutOfMemoryError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +1,70 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* 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, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* All exceptions which are subclasses of <code>RuntimeException</code>
|
||||||
|
* can be thrown at any time during the execution of a Java virtual machine.
|
||||||
|
* Methods which throw these exceptions are not required to declare them
|
||||||
|
* in their throws clause.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class RuntimeException extends Exception
|
public class RuntimeException extends Exception
|
||||||
{
|
{
|
||||||
public RuntimeException()
|
static final long serialVersionUID = -7034897190745766939L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public RuntimeException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public RuntimeException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public RuntimeException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +1,68 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* SecurityException.java -- exception thrown to indicate a security
|
||||||
|
violation.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998. */
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* The security manager will throw this exception to indicate a security
|
||||||
|
* violation.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class SecurityException extends RuntimeException
|
public class SecurityException extends RuntimeException
|
||||||
{
|
{
|
||||||
public SecurityException()
|
static final long serialVersionUID = 6878364983674394167L;
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public SecurityException(String msg)
|
/**
|
||||||
{
|
* Create an exception without a message.
|
||||||
super(msg);
|
*/
|
||||||
}
|
public SecurityException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public SecurityException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,34 +1,65 @@
|
||||||
// StackOverflowError.java
|
/* StackOverflowError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class StackOverflowError extends VirtualMachineError
|
public class StackOverflowError extends VirtualMachineError
|
||||||
{
|
{
|
||||||
public StackOverflowError ()
|
static final long serialVersionUID = 8609175038441759607L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StackOverflowError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public StackOverflowError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public StackOverflowError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,37 +1,79 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* StringIndexOutOfBoundsException.java -- exception thrown to indicate
|
||||||
|
an attempt to access an index which is out of bounds.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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.
|
||||||
|
* This exception can be thrown to indicate an attempt to access an
|
||||||
|
* index which is out of bounds.
|
||||||
|
* Any negative integer less than or equal to -1 and positive
|
||||||
|
* integer greater than or equal to the size of the string is an index
|
||||||
|
* which would be out of bounds.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Warren Levy <warrenl@cygnus.com>
|
||||||
|
* @date September 18, 1998.
|
||||||
|
*/
|
||||||
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
|
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
|
||||||
{
|
{
|
||||||
|
static final long serialVersionUID = -6762910422159637258L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception without a message.
|
||||||
|
*/
|
||||||
public StringIndexOutOfBoundsException()
|
public StringIndexOutOfBoundsException()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public StringIndexOutOfBoundsException(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception noting the illegal index.
|
||||||
|
*/
|
||||||
public StringIndexOutOfBoundsException(int index)
|
public StringIndexOutOfBoundsException(int index)
|
||||||
{
|
{
|
||||||
this("String index out of range: " + index);
|
super("String index out of range: " + index);
|
||||||
}
|
}
|
||||||
|
|
||||||
public StringIndexOutOfBoundsException(String msg)
|
|
||||||
{
|
|
||||||
super(msg);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,7 @@ public final class System
|
||||||
public static String getProperty (String property, String defval)
|
public static String getProperty (String property, String defval)
|
||||||
{
|
{
|
||||||
if (secman != null)
|
if (secman != null)
|
||||||
secman.checkPropertyAccess(property, defval);
|
secman.checkPropertyAccess(property);
|
||||||
if (properties == null)
|
if (properties == null)
|
||||||
init_properties ();
|
init_properties ();
|
||||||
return properties.getProperty(property, defval);
|
return properties.getProperty(property, defval);
|
||||||
|
|
|
@ -1,30 +1,49 @@
|
||||||
// ThreadDeath.java - Special exception registering Thread death.
|
/* java.lang.ThreadDeath - Special exception registering Thread death.
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date August 26, 1998
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Complete to version 1.1
|
* Status: Complete to version 1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ThreadDeath extends Error
|
/**
|
||||||
{
|
** ThreadDeath is thrown in a thread when someone calls <CODE>stop()</CODE> on that thread.
|
||||||
public ThreadDeath ()
|
**
|
||||||
{
|
** <B>Important:</B> Make sure you rethrow this exception if you catch it. If you don't, the thread will not die.
|
||||||
super ();
|
**
|
||||||
}
|
** @author John Keiser
|
||||||
|
** @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
** @version 1.1.0, 5 Feb 1998, August 26 1998
|
||||||
|
** @since JDK1.0
|
||||||
|
** @see java.lang.Thread#stop()
|
||||||
|
**/
|
||||||
|
|
||||||
|
public class ThreadDeath extends Error {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,63 @@
|
||||||
// UnknownError.java
|
/* UnknownError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An <code>UnknownError</code> is thrown when a serious but unknown
|
||||||
|
* problem has occurred in the Java Virtual Machine.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
*/
|
||||||
public class UnknownError extends VirtualMachineError
|
public class UnknownError extends VirtualMachineError
|
||||||
{
|
{
|
||||||
public UnknownError ()
|
static final long serialVersionUID = 2524784860676771849L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UnknownError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public UnknownError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public UnknownError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,66 @@
|
||||||
// UnsatisfiedLinkError.java
|
/* UnsatisfiedLinkError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A <code>UnsatisfiedLinkError</code> is thrown if an appropriate
|
||||||
|
* native language definition of a method declared <code>native</code>
|
||||||
|
* cannot be found by the Java Virtual Machine.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class UnsatisfiedLinkError extends LinkageError
|
public class UnsatisfiedLinkError extends LinkageError
|
||||||
{
|
{
|
||||||
public UnsatisfiedLinkError ()
|
static final long serialVersionUID = -4019343241616879428L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UnsatisfiedLinkError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public UnsatisfiedLinkError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public UnsatisfiedLinkError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
58
libjava/java/lang/UnsupportedClassVersionError.java
Normal file
58
libjava/java/lang/UnsupportedClassVersionError.java
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
/* UnsupportedClassVersionError.java
|
||||||
|
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
|
package java.lang;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An <code>UnsupportedClassVersionError</code> is thrown when the
|
||||||
|
* Java Virtual Machine determines it does not support the major and minor
|
||||||
|
* version numbers in the class file it is attempting to read.
|
||||||
|
*
|
||||||
|
* @since JDK 1.2
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
*/
|
||||||
|
public class UnsupportedClassVersionError extends ClassFormatError
|
||||||
|
{
|
||||||
|
static final long serialVersionUID = -7123279212883497373L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error without a message.
|
||||||
|
*/
|
||||||
|
public UnsupportedClassVersionError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public UnsupportedClassVersionError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,32 +1,65 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* UnsupportedOperationException.java -- Exception thrown when an
|
||||||
|
unsupported operation is attempted on an object
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
it under the terms of the GNU General Public License as published by
|
||||||
details. */
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date September 18, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class UnsupportedOperationException extends RuntimeException
|
||||||
{
|
{
|
||||||
public UnsupportedOperationException()
|
static final long serialVersionUID = -1242599979055084673L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an exception without a message.
|
||||||
|
*/
|
||||||
|
public UnsupportedOperationException()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public UnsupportedOperationException(String msg)
|
/**
|
||||||
|
* Create an exception with a message.
|
||||||
|
*/
|
||||||
|
public UnsupportedOperationException( String s )
|
||||||
{
|
{
|
||||||
super(msg);
|
super(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
71
libjava/java/lang/VMSecurityManager.java
Normal file
71
libjava/java/lang/VMSecurityManager.java
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
/*
|
||||||
|
* java.lang.SecurityManager: part of the Java Class Libraries project.
|
||||||
|
* Copyright (C) 1998, 2001 Free Software Foundation
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the
|
||||||
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package java.lang;
|
||||||
|
|
||||||
|
import java.net.*;
|
||||||
|
import java.util.*;
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
** VMSecurityManager is a helper class for SecurityManager the VM must
|
||||||
|
** implement.
|
||||||
|
**
|
||||||
|
** @author John Keiser
|
||||||
|
** @version 1.1.0, 31 May 1998
|
||||||
|
**/
|
||||||
|
class VMSecurityManager
|
||||||
|
{
|
||||||
|
/** Get a list of all the classes currently executing
|
||||||
|
** methods on the Java stack. getClassContext()[0] is
|
||||||
|
** the currently executing method
|
||||||
|
** <STRONG>Spec Note:</STRONG> does not say whether
|
||||||
|
** the stack will include the getClassContext() call or
|
||||||
|
** the one just before it.
|
||||||
|
**
|
||||||
|
** @return an array containing all the methods on classes
|
||||||
|
** on the Java execution stack.
|
||||||
|
**/
|
||||||
|
static Class[] getClassContext()
|
||||||
|
{
|
||||||
|
// FIXME: can't yet implement this for libgcj.
|
||||||
|
return new Class[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get the current ClassLoader--the one nearest to the
|
||||||
|
** top of the stack.
|
||||||
|
** @return the current ClassLoader.
|
||||||
|
**/
|
||||||
|
static ClassLoader currentClassLoader()
|
||||||
|
{
|
||||||
|
// The docs above are wrong. See the online docs.
|
||||||
|
// FIXME this implementation is a bit wrong too -- the docs say we
|
||||||
|
// must also consider ancestors of the system class loader.
|
||||||
|
Class[] classStack = getClassContext ();
|
||||||
|
for (int i = 0; i < classStack.length; i++)
|
||||||
|
{
|
||||||
|
ClassLoader loader = classStack[i].getClassLoader();
|
||||||
|
if (loader != null)
|
||||||
|
return loader;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,34 +1,65 @@
|
||||||
// VerifyError.java
|
/* VerifyError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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."
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public class VerifyError extends LinkageError
|
public class VerifyError extends LinkageError
|
||||||
{
|
{
|
||||||
public VerifyError ()
|
static final long serialVersionUID = 7001962396098498785L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public VerifyError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public VerifyError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public VerifyError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,66 @@
|
||||||
// VirtualMachineError.java
|
/* VirtualMachineError.java
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang;
|
package java.lang;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date October 1, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* FIXME: We should consider adding some special error message when this
|
/**
|
||||||
* exception is thrown, or maybe if it being caught at top-level. Such
|
* A <code>VirtualMachineError</code> or its subclasses are thrown to
|
||||||
* a message would direct the user to send a bug report to
|
* indicate there is something wrong with the Java Virtual Machine or that
|
||||||
* gcj-bugs@cygnus.com, or something like that. --KKT */
|
* it does not have the resources needed for it to continue execution.
|
||||||
|
*
|
||||||
|
* @since JDK 1.0
|
||||||
|
*
|
||||||
|
* @author Brian Jones
|
||||||
|
* @author Tom Tromey <tromey@cygnus.com>
|
||||||
|
* @date October 1, 1998
|
||||||
|
*/
|
||||||
public abstract class VirtualMachineError extends Error
|
public abstract class VirtualMachineError extends Error
|
||||||
{
|
{
|
||||||
public VirtualMachineError ()
|
static final long serialVersionUID = 4161983926571568670L;
|
||||||
{
|
|
||||||
super ();
|
|
||||||
}
|
|
||||||
|
|
||||||
public VirtualMachineError (String msg)
|
/**
|
||||||
{
|
* Create an error without a message.
|
||||||
super (msg);
|
*/
|
||||||
}
|
public VirtualMachineError()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an error with a message.
|
||||||
|
*/
|
||||||
|
public VirtualMachineError(String s)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,75 +1,128 @@
|
||||||
// InvocationTargetException.java - Wrapper exception for reflection.
|
/* InvocationTargetException.java - Wrapper exception for reflection
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
This software is copyrighted work licensed under the terms of the
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
any later version.
|
||||||
details. */
|
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
|
|
||||||
package java.lang.reflect;
|
package java.lang.reflect;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Tom Tromey <tromey@cygnus.com>
|
|
||||||
* @date December 12, 1998
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: Believed complete and correct.
|
* Status: Believed complete and correct.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class InvocationTargetException extends Exception
|
/**
|
||||||
|
* InvocationTargetException is sort of a way to "wrap" whatever exception
|
||||||
|
* comes up when a method or constructor is called via Reflection.
|
||||||
|
*
|
||||||
|
* @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[])
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class InvocationTargetException extends Exception
|
||||||
{
|
{
|
||||||
public Throwable getTargetException ()
|
static final long serialVersionUID = 4085088731926701167L;
|
||||||
|
|
||||||
|
private Throwable target = null;
|
||||||
|
|
||||||
|
protected InvocationTargetException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an <code>InvocationTargetException</code> using another
|
||||||
|
* exception.
|
||||||
|
* @param targetException the exception to wrap
|
||||||
|
*/
|
||||||
|
public InvocationTargetException(Throwable targetException)
|
||||||
|
{
|
||||||
|
super(targetException.toString());
|
||||||
|
target = targetException;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an <code>InvocationTargetException</code> using another
|
||||||
|
* exception and an error message.
|
||||||
|
*
|
||||||
|
* @param targetException the exception to wrap
|
||||||
|
* @param err an extra reason for the exception-throwing
|
||||||
|
*/
|
||||||
|
public InvocationTargetException(Throwable targetException, String err)
|
||||||
|
{
|
||||||
|
super(err);
|
||||||
|
target = targetException;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the wrapped (targeted) exception.
|
||||||
|
*
|
||||||
|
* @return the targeted exception.
|
||||||
|
*/
|
||||||
|
public Throwable getTargetException()
|
||||||
{
|
{
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected InvocationTargetException ()
|
public void printStackTrace()
|
||||||
{
|
{
|
||||||
super ();
|
if (target == null)
|
||||||
target = null;
|
super.printStackTrace();
|
||||||
}
|
else
|
||||||
|
{
|
||||||
public InvocationTargetException (Throwable exception)
|
System.err.print(this.getClass() + ": ");
|
||||||
{
|
|
||||||
super ();
|
|
||||||
target = exception;
|
|
||||||
}
|
|
||||||
|
|
||||||
public InvocationTargetException (Throwable exception, String msg)
|
|
||||||
{
|
|
||||||
super (msg);
|
|
||||||
target = exception;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is from JDK 1.2.
|
|
||||||
public void printStackTrace ()
|
|
||||||
{
|
|
||||||
if (target != null)
|
|
||||||
target.printStackTrace();
|
target.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is from JDK 1.2.
|
public void printStackTrace(PrintStream ps)
|
||||||
public void printStackTrace (PrintStream s)
|
|
||||||
{
|
{
|
||||||
if (target != null)
|
if (target == null)
|
||||||
target.printStackTrace(s);
|
super.printStackTrace(ps);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ps.print(this.getClass() + ": ");
|
||||||
|
target.printStackTrace(ps);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is from JDK 1.2.
|
public void printStackTrace(PrintWriter pw)
|
||||||
public void printStackTrace (PrintWriter wr)
|
|
||||||
{
|
{
|
||||||
if (target != null)
|
if (target == null)
|
||||||
target.printStackTrace(wr);
|
super.printStackTrace(pw);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pw.print(this.getClass() + ": ");
|
||||||
|
target.printStackTrace(pw);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The wrapped exception. The name is specified by the
|
|
||||||
// serialization spec.
|
|
||||||
private Throwable target;
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 4085088731926701167L;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,35 +1,75 @@
|
||||||
// BindException.java
|
/* BindException.java -- An exception occured while binding to a socket
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
You should have received a copy of the GNU General Public License
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
details. */
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date March 5, 1999.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class BindException extends SocketException
|
||||||
{
|
{
|
||||||
public BindException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public BindException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>BindException</code> without
|
||||||
|
* a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
BindException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>BindException</code> with
|
||||||
|
* a descriptive error message, such as the text from strerror(3).
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
BindException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class BindException
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,77 @@
|
||||||
// ConnectException.java
|
/* ConnectException.java -- An exception occured while connecting to a host
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date March 5, 1999.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class ConnectException extends SocketException
|
||||||
{
|
{
|
||||||
public ConnectException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ConnectException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>ConnectException</code> without
|
||||||
|
* a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
ConnectException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>ConnectException</code> with
|
||||||
|
* a descriptive error message, such as the text from strerror(3).
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
ConnectException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class ConnectException
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,75 @@
|
||||||
// MalformedURLException.java
|
/* MalformedURLException.java -- A URL was not in a valid format
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
You should have received a copy of the GNU General Public License
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
details. */
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date March 5, 1999.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class MalformedURLException extends java.io.IOException
|
||||||
{
|
{
|
||||||
public MalformedURLException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public MalformedURLException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>MalformedURLException</code> without
|
||||||
|
* a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
MalformedURLException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>MalformedURLException</code> without
|
||||||
|
* a descriptive error message.
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
MalformedURLException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class MalformedURLException
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,76 @@
|
||||||
// NoRouteToHostException.java
|
/* NoRouteToHostException.java -- Cannot connect to a host
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date March 5, 1999.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class NoRouteToHostException extends SocketException
|
||||||
{
|
{
|
||||||
public NoRouteToHostException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public NoRouteToHostException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes an instance of <code>NoRouteToHostException</code>
|
||||||
|
* without a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
NoRouteToHostException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes an instance of <code>NoRouteToHostException</code>
|
||||||
|
* witha descriptive error message, such as the text from strerror(3).
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
NoRouteToHostException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class NoRouteToHostException
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,76 @@
|
||||||
// ProtocolException.java
|
/* ProtocolException.java -- A low level protocol error occured
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
You should have received a copy of the GNU General Public License
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
details. */
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date March 5, 1999.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class ProtocolException extends java.io.IOException
|
||||||
{
|
{
|
||||||
public ProtocolException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProtocolException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>ProtocolException</code>
|
||||||
|
* without a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
ProtocolException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>ProtocolException</code>
|
||||||
|
* with a descriptive error message.
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
ProtocolException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class ProtocolException
|
||||||
|
|
||||||
|
|
|
@ -1,33 +1,74 @@
|
||||||
// SocketException.java - Base class for networking exceptions
|
/* SocketException.java -- An exception occured while performing a socket op
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
You should have received a copy of the GNU General Public License
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
details. */
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
/* Written using on-line Java Platform 1.2 API Specification.
|
||||||
* @author Per Bothner
|
* Believed complete and correct.
|
||||||
* @date January 6, 1999.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** 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
|
public class SocketException extends java.io.IOException
|
||||||
{
|
{
|
||||||
public SocketException ()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public SocketException (String s)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(s);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>SocketException</code> without
|
||||||
|
* a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
SocketException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>SocketException</code> without
|
||||||
|
* a descriptive error message.
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
SocketException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class SocketException
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,77 @@
|
||||||
// UnknownHostException.java
|
/* UnknownHostException.java -- The hostname is not unknown
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
You should have received a copy of the GNU General Public License
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
details. */
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Per Bothner
|
|
||||||
* @date January 6, 1999.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Written using on-line Java Platform 1.2 API Specification.
|
* Written using on-line Java Platform 1.2 API Specification.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
||||||
|
* DNS problem has occurred, but most often means that the host was not
|
||||||
|
* correctly specified.
|
||||||
|
*
|
||||||
|
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||||
|
* @author Per Bothner
|
||||||
|
* @date January 6, 1999.
|
||||||
|
*/
|
||||||
public class UnknownHostException extends java.io.IOException
|
public class UnknownHostException extends java.io.IOException
|
||||||
{
|
{
|
||||||
public UnknownHostException ()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UnknownHostException (String host)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(host);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>UnknownHostException</code>
|
||||||
|
* without a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UnknownHostException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>UnknownHostException</code>
|
||||||
|
* with a descriptive error message, such as the name of the host
|
||||||
|
* that could not be resolved.
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurrred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UnknownHostException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class UnknownHostException
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,77 @@
|
||||||
// UnknownServiceException.java
|
/* UnknownServiceException.java -- A service error occured
|
||||||
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
/* Copyright (C) 1999 Free Software Foundation
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
This file is part of libgcj.
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
You should have received a copy of the GNU General Public License
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
details. */
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
package java.net;
|
package java.net;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Warren Levy <warrenl@cygnus.com>
|
|
||||||
* @date March 5, 1999.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class UnknownServiceException extends java.io.IOException
|
||||||
{
|
{
|
||||||
public UnknownServiceException()
|
|
||||||
{
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UnknownServiceException(String msg)
|
/*
|
||||||
{
|
* Constructors
|
||||||
super(msg);
|
*/
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>UnknownServiceException</code>
|
||||||
|
* without a descriptive error message.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UnknownServiceException()
|
||||||
|
{
|
||||||
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes a new instance of <code>UnknownServiceException</code>
|
||||||
|
* without a descriptive error message.
|
||||||
|
*
|
||||||
|
* @param message A message describing the error that occurred.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
UnknownServiceException(String message)
|
||||||
|
{
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class UnknownServiceException
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,91 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* ParseException.java -- An error occurred while parsing.
|
||||||
|
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
|
GNU Classpath is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU Classpath is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
02111-1307 USA.
|
||||||
|
|
||||||
|
As a special exception, if you link this library with other files to
|
||||||
|
produce an executable, this library does not by itself cause the
|
||||||
|
resulting executable to be covered by the GNU General Public License.
|
||||||
|
This exception does not however invalidate any other reasons why the
|
||||||
|
executable file might be covered by the GNU General Public License. */
|
||||||
|
|
||||||
This software is copyrighted work licensed under the terms of the
|
|
||||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
||||||
details. */
|
|
||||||
|
|
||||||
package java.text;
|
package java.text;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Per Bothner <bothner@cygnus.com>
|
|
||||||
* @date October 25, 1998.
|
|
||||||
*/
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, plus online
|
/* Written using "Java Class Libraries", 2nd edition, plus online
|
||||||
* API docs for JDK 1.2 beta from http://www.javasoft.com.
|
* API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||||
* Status: Believed complete and correct.
|
* 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
|
public class ParseException extends Exception
|
||||||
{
|
{
|
||||||
private int errorOffset;
|
|
||||||
|
|
||||||
public ParseException (String msg, int errorOffset)
|
/*
|
||||||
{
|
* Instance Variables
|
||||||
super(msg);
|
*/
|
||||||
this.errorOffset = errorOffset;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getErrorOffset ()
|
/**
|
||||||
{
|
* This is the position where the error was encountered.
|
||||||
return errorOffset;
|
*/
|
||||||
}
|
private int errorOffset;
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Constructors
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method initializes a new instance of <code>ParseException</code>
|
||||||
|
* with a detailed error message and a error position.
|
||||||
|
*
|
||||||
|
* @param msg The descriptive message describing the error.
|
||||||
|
* @param offset The position where the error was encountered.
|
||||||
|
*/
|
||||||
|
public
|
||||||
|
ParseException(String s, int offset)
|
||||||
|
{
|
||||||
|
super(s);
|
||||||
|
|
||||||
|
errorOffset = offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method returns the position where the error occurred.
|
||||||
|
*
|
||||||
|
* @return The position where the error occurred.
|
||||||
|
*/
|
||||||
|
public int
|
||||||
|
getErrorOffset()
|
||||||
|
{
|
||||||
|
return(errorOffset);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // class ParseException
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue