|
From: | anonymous |
Subject: | [commit-cp] [bug #12796] GapContent members throw other exceptions, not BadLocationException |
Date: | Mon, 25 Apr 2005 10:53:48 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 |
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12796> Summary: GapContent members throw other exceptions, not BadLocationException Project: classpath Submitted by: None Submitted on: Mon 04/25/2005 at 06:53 Category: classpath Severity: 3 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Platform Version: None _______________________________________________________ Details: In javax.swing.text.GapContent: Some methods should throw BadLocationException if there is an index error, but they would throw other exceptions instead: insertString would throw StringIndexOutOfBoundsException remove would throw StringIndexOutOfBoundsException getString would throw StringIndexOutOfBoundsException getChars would throw IndexOutOfBoundsException _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12796> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |