Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 9944 invoked from network); 27 Oct 2006 12:18:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 12:18:52 -0000 Received: (qmail 56291 invoked by uid 500); 27 Oct 2006 12:18:58 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 56264 invoked by uid 500); 27 Oct 2006 12:18:58 -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 56250 invoked by uid 99); 27 Oct 2006 12:18:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 05:18:58 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 05:18:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60CE37142D1 for ; Fri, 27 Oct 2006 04:56:18 -0700 (PDT) Message-ID: <20938458.1161950178393.JavaMail.root@brutus> Date: Fri, 27 Oct 2006 04:56:18 -0700 (PDT) From: "Alexey A. Ivanov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1975) [classlib][swing] Further generification of the javax.swing.table, javax.swing.text.* and javax.swing.tree packages. In-Reply-To: <15162809.1161857236555.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-1975?page=comments#action_12445160 ] Alexey A. Ivanov commented on HARMONY-1975: ------------------------------------------- About GapContent modification: It's not that simple as it seems. Consider the following modified example (only the main method, other code is unchanged): ------------------------------------------------------- public static void main(String[] args) throws Exception { MyGC gc = new MyGC(); gc.insertString(0, "text"); System.err.println("'" + gc.getString(0, gc.length()) + "'"); gc.callReplace(-3, 3, null, 0); System.err.println("'" + gc.getString(0, gc.length()) + "'"); } ------------------------------------------------------- When running on Harmony without the fix to GapContent, we get: 'text ' javax.swing.text.BadLocationException: Invalid remove position at javax.swing.text.GapContent.removeItems(GapContent.java:390) at javax.swing.text.GapContent.replace(GapContent.java:243) at HTest1975$MyGC.callReplace(HTest1975.java:16) at HTest1975.main(HTest1975.java:9) 'text ' ======= When running on Harmony with the fix: 'text ' 'text ' ======= When running on RI (JRockit 1.5): 'text ' 't ' ======= As you can see, the RI peforms operation on *invalid* values. Should we follow its behaviour (yet to be determined more accurately)? > [classlib][swing] Further generification of the javax.swing.table, javax.swing.text.* and javax.swing.tree packages. > -------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1975 > URL: http://issues.apache.org/jira/browse/HARMONY-1975 > Project: Harmony > Issue Type: Sub-task > Components: Classlib > Reporter: Oleg Khaschansky > Assigned To: Stepan Mishura > Attachments: harmony-1975.patch > > > This subtask will include a new patch for generification of the javax.swing.table, javax.swing.text.* and javax.swing.tree packages. I'll provide this patch. -- 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