Fixed a small typo
2005-12-13 Lillian Angel <[EMAIL PROTECTED]>
* javax/swing/text/html/HTMLEditorKit.java
(getHTMLEditorKit): Fixed typo.
On Tue, 2005-12-13 at 17:49 -0500, Lillian Angel wrote:
> > Try catching a more specific Exception (like ClassCastException) or
> > first trying if (e instanceof HTMLEditor). And when catching an
> > exception and throwing a new one it often makes sense to chain the
> > exceptions with initCause().
>
> You are right. Thanks for catching that.
> It is now fixed.
>
>
> 2005-12-13 Lillian Angel <[EMAIL PROTECTED]>
>
> * javax/swing/text/html/HTMLEditorKit.java
> (insertHTML): Fixed catching of exceptions.
> (getHTMLDocument): Likewise.
> (getHTMLEditorKit): Likewise.
>
> _______________________________________________
> Classpath-patches mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/classpath-patches
Index: javax/swing/text/html/HTMLEditorKit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/HTMLEditorKit.java,v
retrieving revision 1.15
diff -u -r1.15 HTMLEditorKit.java
--- javax/swing/text/html/HTMLEditorKit.java 13 Dec 2005 22:49:21 -0000 1.15
+++ javax/swing/text/html/HTMLEditorKit.java 13 Dec 2005 22:50:54 -0000
@@ -365,7 +365,7 @@
EditorKit d = e.getEditorKit();
if (d instanceof HTMLEditorKit)
return (HTMLEditorKit) d;
- throw new IllegalArgumentException("Document is not a HTMLDocument.");
+ throw new IllegalArgumentException("Document is not a HTMLEditorKit.");
}
/**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches