Patch: AWTError fix

Tom Tromey tromey@redhat.com
Sun Dec 3 17:54:00 GMT 2000


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);


More information about the Java-patches mailing list