harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2887) [classlib][swing] javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() default implementation returns -1 when RI returns 0
Date Fri, 09 Mar 2007 13:28:24 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov closed HARMONY-2887.
------------------------------------

    Resolution: Won't Fix
      Assignee: Alexei Zakharov

> [classlib][swing] javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() default implementation
returns -1 when RI returns 0
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2887
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2887
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Ilya Okomin
>         Assigned To: Alexei Zakharov
>            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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message