Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 8987 invoked from network); 7 Nov 2006 10:51:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 10:51:13 -0000 Received: (qmail 84745 invoked by uid 500); 7 Nov 2006 10:51:24 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 84719 invoked by uid 500); 7 Nov 2006 10:51:24 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 84708 invoked by uid 99); 7 Nov 2006 10:51:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 02:51:24 -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, 07 Nov 2006 02:51:12 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 823CF7142F7 for ; Tue, 7 Nov 2006 02:50:52 -0800 (PST) Message-ID: <1571944.1162896652530.JavaMail.jira@brutus> Date: Tue, 7 Nov 2006 02:50:52 -0800 (PST) From: "Alexey A. Ivanov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1809) [classlib][swing]javax.swing.text.GapContent.replace(int, int, java.lang.Object, int) throws unspescified BadLocationException In-Reply-To: <4587423.1160479639768.JavaMail.root@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 [ http://issues.apache.org/jira/browse/HARMONY-1809?page=all ] Alexey A. Ivanov updated HARMONY-1809: -------------------------------------- Attachment: H1809-GapContent.patch Fixes the problem stated by silently ignoring BadLocationException which may be thrown from insertItems, removeItems methods that implement replace in Harmony. Two votes were for this solution on the dev-list; there were no other votes. The patch also adds final modifier to three methods: getArray(), getGapEnd(), getGapStart(). These are final according to spec. but they were not in Harmony. Also warnings were cleaned up: @Override annotations added, @SuppressWarnings("serial"), and some cosmetic code changes. > [classlib][swing]javax.swing.text.GapContent.replace(int, int, java.lang.Object, int) throws unspescified BadLocationException > ------------------------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-1809 > URL: http://issues.apache.org/jira/browse/HARMONY-1809 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Svetlana Samoilenko > Priority: Trivial > Attachments: GapContent.patch, H1809-GapContent.patch, HTest1809.java > > > RI does not throw javax.swing.text.BadLocationException for GapContent.replace(int, int, java.lang.Object, int) while Harmony does. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira