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 21:31:27 UTC

[jira] Commented: (HARMONY-2618) [classlib][swing] javax.swing.JTree.getExpandedDescendants() returns Enumeration while RI returns null

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

Mark Hindess commented on HARMONY-2618:
---------------------------------------

If I apply the fix I get a failure from:

testGetExpandedDescendants
Failure  expected:<1> but was:<0>

                      junit.framework.AssertionFailedError: expected:<1>
                      but was:<0> at
                      javax.swing.JTreeTest.checkInEnumeration
                      (JTreeTest.java:222) at
                      javax.swing.JTreeTest.testGetExpandedDescendants
                      (JTreeTest.java:1186) at
                      java.lang.reflect.AccessibleObject.invokeV
                      (AccessibleObject.java:25) at
                      javax.swing.BasicSwingTestCase.runBareSuper
                      (BasicSwingTestCase.java:117) at
                      javax.swing.BasicSwingTestCase.runBareImpl
                      (BasicSwingTestCase.java:122) at
                      javax.swing.BasicSwingTestCase$1.run
                      (BasicSwingTestCase.java:136) at
                      java.lang.Thread.run(Thread.java:872)


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