harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Krivenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2618) [classlib][swing] javax.swing.JTree.getExpandedDescendants() returns Enumeration while RI returns null
Date Fri, 09 Feb 2007 09:58:06 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471638
] 

Sergey Krivenko commented on HARMONY-2618:
------------------------------------------

the code I mentioned throws NPE after I apply the fix

> [classlib][swing] javax.swing.JTree.getExpandedDescendants() returns Enumeration while
RI returns null
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2618
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2618
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>         Assigned To: Alexey Petrenko
>         Attachments: Harmony-2618-JTree.patch, Harmony-2618-JTreeTest.patch
>
>
> Problem details:
> ----------------------
> According to J2SE API 5.0 specifications of
> getExpandedDescendants() method: 
> "Returns an Enumeration of the descendants of the path parent that are
> currently expanded.If parent is not currently expanded, this will return null"
> javax.swing.JTree.getExpandedDescendants() returns Enumeration of TreePath
> while RI returns null.
> Test for reprodicing:
> --------------------------
> import javax.swing.JTree;
> import javax.swing.tree.TreePath;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public void testcase1() {
>         TreePath p = new TreePath(new Object());
>         JTree t = new JTree();
>         assertNull(t.getExpandedDescendants(p));
>     }
> }

-- 
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