You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Dolgov (JIRA)" <ji...@apache.org> on 2006/12/12 11:34:21 UTC

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

[classlib][swing] javax.swing.JTree.getExpandedDescendants() returns Enumeration while RI returns null
------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2618
                 URL: http://issues.apache.org/jira/browse/HARMONY-2618
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Pavel Dolgov


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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-2618.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [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-JTree.patch, Harmony-2618-JTreeTest.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.


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

Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Krivenko updated HARMONY-2618:
-------------------------------------

    Attachment: Harmony-2618-JTree.patch

the attached file is an updated patch

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


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

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Krivenko updated HARMONY-2618:
-------------------------------------

    Attachment: Harmony-2618-JTreeTest.patch

The attached is a fix to the test. If the latest patch is applied without applying this  test update the test will fail.

> [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-JTree.patch, Harmony-2618-JTreeTest.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.


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

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-2618:
----------------------------------------

    Assignee: Alexey Petrenko

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


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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2618:
-------------------------------------

    Patch Info: [Patch Available]

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

        

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

Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471407 ] 

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

It looks like the JTreeTest is invalid. Its testGetExpandedDescendants() method contains the following code:

assertFalse(tree.getExpandedDescendants(path1).hasMoreElements());
assertFalse(tree.getExpandedDescendants(path11).hasMoreElements());

This code throws NullPointerException on RI. The spec explains why: method getExpandedDescendants(TreePath parent) should return null if its parameter is not currently expanded. Which is the case. 





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


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

Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473365 ] 

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

Verified.

> [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-JTree.patch, Harmony-2618-JTreeTest.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.


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

Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Krivenko updated HARMONY-2618:
-------------------------------------

    Attachment: Harmony-2618-JTree.patch

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

        

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

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko closed HARMONY-2618.
------------------------------------


> [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-JTree.patch, Harmony-2618-JTreeTest.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.


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

Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Krivenko updated HARMONY-2618:
-------------------------------------

    Attachment: Harmony-2618-JTreeTest.patch

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

        

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

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471633 ] 

Alexey Petrenko commented on HARMONY-2618:
------------------------------------------

But the test fails not with NPE so this is not the case.

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


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

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470601 ] 

Alexey Petrenko commented on HARMONY-2618:
------------------------------------------

Yes, I can reproduce this failure too.

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