harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@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
Date Thu, 10 Aug 2006 11:05:13 GMT
[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

        

Mime
View raw message