harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2537) [classlib][swing] JTree.isVisible() returns false while RI returns true
Date Fri, 08 Dec 2006 10:12:21 GMT
[classlib][swing] JTree.isVisible() returns false while RI returns true

                 Key: HARMONY-2537
                 URL: http://issues.apache.org/jira/browse/HARMONY-2537
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko

According to J2SE API 5.0 specifications of isVisible(TreePath path) method: "Returns true
if the value identified by path is currently viewable, which means it is either the root or
all of its parents are expanded. Otherwise, this method returns false."
javax.swing.JTree.isVisible(TreePath path) returns false while RI returns true.
Compatibility issue.

Code for reproducing:
import junit.framework.TestCase;
import javax.swing.*;
import javax.swing.tree.TreePath;

public class Test extends TestCase {       
    public void testcase1() {
        TreePath p = new TreePath(new Object());
        JTree t = new JTree();

Output on Sun 1.5
Time: 0.437

OK (1 test)

Output on Harmony:
Time: 1.016
There was 1 failure:
1) testcase1(Test)junit.framework.AssertionFailedError
        at Test.testcase1(Test.java:9)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

Tests run: 1,  Failures: 1,  Errors: 0

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


View raw message