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] Closed: (HARMONY-2603) [classlib][swing] j.s.undo.CompoundEdit.getPresentationName throws NPE
Date Tue, 13 Feb 2007 08:31:05 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey A. Ivanov closed HARMONY-2603.
-------------------------------------


Verified.
Thank you, Mark.

> [classlib][swing] j.s.undo.CompoundEdit.getPresentationName throws NPE
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-2603
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2603
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Assigned To: Mark Hindess
>         Attachments: H2603-CompoundEdit.patch, H2603-CompoundEditTest.patch
>
>
> Code to reproduce:
> import java.util.Hashtable;
> import javax.swing.undo.CompoundEdit;
> import javax.swing.undo.StateEdit;
> import javax.swing.undo.StateEditable;
> public class Test {
>     private static StateEdit getStateEdit() {
>         return new StateEdit(new StateEditable() {
>             public void storeState(Hashtable arg0) {
>             }
>             public void restoreState(Hashtable arg0) {
>             }
>         });
>     }
>     public static void main(String[] args) {
>         CompoundEdit ce = new CompoundEdit();
>         ce.addEdit(getStateEdit());
>         try {
>             System.err.println("'" + ce.getPresentationName() + "'");
>             System.err.println(ce.getPresentationName() == null);
>         } catch (Exception e) {
>             e.printStackTrace();
>         }
>     }
> }
> ------ end of code ------
> === Harmony output ===
> java.lang.NullPointerException
> 	at javax.swing.undo.CompoundEdit.getPresentationName(CompoundEdit.java:111)
> 	at Test.main(Test.java:22)
> ===================
> === RI output ===
> 'null'
> true
> =============

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message