You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/03/09 14:28:24 UTC

[jira] Commented: (HARMONY-2887) [classlib][swing] javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() default implementation returns -1 when RI returns 0

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

Alexei Zakharov commented on HARMONY-2887:
------------------------------------------

Since RI behavior contradicts the spec I agree that this is Non-Bug-Diff.

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