Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 13806 invoked from network); 16 Jan 2007 16:09:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 16:09:48 -0000 Received: (qmail 21890 invoked by uid 500); 16 Jan 2007 16:09:54 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 21867 invoked by uid 500); 16 Jan 2007 16:09:54 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 21858 invoked by uid 99); 16 Jan 2007 16:09:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 08:09:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 08:09:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 980987142A6 for ; Tue, 16 Jan 2007 08:09:27 -0800 (PST) Message-ID: <9332950.1168963767597.JavaMail.jira@brutus> Date: Tue, 16 Jan 2007 08:09:27 -0800 (PST) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-2744) [classlib][swing] j.s.text.Utilities.getNextWord throws IllegalArgumentException rather than BadLocationException In-Reply-To: <10036776.1166184021079.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess resolved HARMONY-2744. ----------------------------------- Resolution: Fixed Assignee: Mark Hindess Applied patches in r496745. Please confirm they have been applied as expected. > [classlib][swing] j.s.text.Utilities.getNextWord throws IllegalArgumentException rather than BadLocationException > ----------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2744 > URL: https://issues.apache.org/jira/browse/HARMONY-2744 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Alexey A. Ivanov > Assigned To: Mark Hindess > Attachments: H2744-j.s.text.UtilitiesTest.patch, H2744-o.a.h.awt.text.TextUtils.patch > > > javax.swing.text.Utilities.getNextWord(JTextComponent, int) throws IllegalArgumentException where RI throws BadLocationException. > To reproduce, use the following code: > Utilities.getNextWord(new JEditorPane("text/plain", ""), 0); > ------- Harmony ------- > java.lang.IllegalArgumentException > at java.text.RuleBasedBreakIterator.validateOffset(RuleBasedBreakIterator.java:71) > at java.text.RuleBasedBreakIterator.following(RuleBasedBreakIterator.java:61) > at org.apache.harmony.awt.text.TextUtils.getNextWord(TextUtils.java:144) > at javax.swing.text.Utilities.getNextWord(Utilities.java:49) > ------- end ------- > ------- RI ------- > javax.swing.text.BadLocationException: No more words > at javax.swing.text.Utilities.getNextWordInParagraph(Utilities.java:524) > at javax.swing.text.Utilities.getNextWord(Utilities.java:498) > ------- end ------- -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira