This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: AWTError fix


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]