harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Okomin (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2887) [classlib][swing] javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() default implementation returns -1 when RI returns 0
Date Wed, 27 Dec 2006 09:32:21 GMT
[classlib][swing] javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() default implementation
returns -1 when RI returns 0
-------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2887
                 URL: http://issues.apache.org/jira/browse/HARMONY-2887
             Project: Harmony
          Issue Type: Bug
          Components: Non-bug differences from RI
            Reporter: Ilya Okomin
            Priority: Minor


javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() returns -1 on Harmony, when RI reurns
0.
Seems that this is a bug in RI, as specification says that getRolloverTab() should return
-1 if the mouse is no longer over any tab.

Test to reproduce:

import javax.swing.plaf.basic.*;

class lBasicTabbedPaneUI extends BasicTabbedPaneUI {
        public lBasicTabbedPaneUI() {
                super();
        }
        public int getRolloverTab() {
                return super.getRolloverTab();
        }
}

public class TestForBugReproduce    
{
        public static void main(String args[]) {
                lBasicTabbedPaneUI localBasicTabbedPaneUI = new
lBasicTabbedPaneUI();
                int returnValue = localBasicTabbedPaneUI.getRolloverTab();
                System.out.println("returnValue = " + returnValue);
        }
}

Output on RI:
================
returnValue = 0

Output on Harmony:
================
returnValue = -1


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

        

Mime
View raw message