You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2007/01/13 20:48:27 UTC
[jira] Resolved: (HARMONY-2603) [classlib][swing]
j.s.undo.CompoundEdit.getPresentationName throws NPE
[ https://issues.apache.org/jira/browse/HARMONY-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess resolved HARMONY-2603.
-----------------------------------
Resolution: Fixed
Assignee: Mark Hindess
Applied patches in r495956. Please confirm they have been applied as expected.
> [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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira