Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 14365 invoked from network); 10 Aug 2006 11:08:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 11:08:00 -0000 Received: (qmail 20418 invoked by uid 500); 10 Aug 2006 11:08:00 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 20317 invoked by uid 500); 10 Aug 2006 11:08:00 -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 20306 invoked by uid 99); 10 Aug 2006 11:07:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 04:07:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 04:07:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E05E97142A1 for ; Thu, 10 Aug 2006 11:05:13 +0000 (GMT) Message-ID: <26686882.1155207913916.JavaMail.jira@brutus> Date: Thu, 10 Aug 2006 04:05:13 -0700 (PDT) From: "Alexey A. Ivanov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Created: (HARMONY-1138) [classlib][swing/text] The result of AbstractUndoableEdit.get{Undo, Redo}Presentation name differs from the RI one where getPresentationName() returns null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [classlib][swing/text] The result of AbstractUndoableEdit.get{Undo, Redo}Presentation name differs from the RI one where getPresentationName() returns null ----------------------------------------------------------------------------------------------------------------------------------------------------------- Key: HARMONY-1138 URL: http://issues.apache.org/jira/browse/HARMONY-1138 Project: Harmony Issue Type: Bug Components: Non-bug differences from RI Reporter: Alexey A. Ivanov Priority: Minor Consider the following test: import javax.swing.undo.AbstractUndoableEdit; public class NullPresentationName { public static void main(String[] args) { AbstractUndoableEdit aue = new AbstractUndoableEdit() { public String getPresentationName() { return null; } }; System.out.println("'" + aue.getUndoPresentationName() + "'"); System.out.println("'" + aue.getRedoPresentationName() + "'"); } } The ouput of the RI: 'Undo null' 'Redo null' The output of Harmony (after applying the patch for HARMONY-1137): 'Undo' 'Redo' Before applying the patch for HARMONY-1137, NPE is thrown when this test is run on Harmony. -- 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