This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: AWTError fix
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: AWTError fix
- From: Tom Tromey <tromey at redhat dot com>
- Date: 03 Dec 2000 19:05:12 -0700
- Reply-To: tromey at redhat dot com
Here's a minor cleanup.
2000-12-03 Tom Tromey <tromey@redhat.com>
* java/awt/AWTError.java: Extend Error, not
IllegalStateException.
Tom
Index: java/awt/AWTError.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/awt/AWTError.java,v
retrieving revision 1.1
diff -u -r1.1 AWTError.java
--- AWTError.java 2000/04/09 04:13:27 1.1
+++ AWTError.java 2000/12/04 01:53:17
@@ -8,16 +8,16 @@
package java.awt;
-/**
+/** An exception of this type is thrown by AWT in some situations,
+ * usually when major problems are encountered.
* @author Tom Tromey <tromey@cygnus.com>
* @date April 8, 2000
*/
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-
-public class AWTError extends IllegalStateException
+public class AWTError extends Error
{
+ /** Make a new instance of AWTError
+ * @param s Text associated with the exception
+ */
public AWTError (String s)
{
super (s);