harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2701) [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns
Date Sun, 14 Jan 2007 09:59:27 GMT

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

Mark Hindess resolved HARMONY-2701.
-----------------------------------

    Resolution: Fixed
      Assignee: Mark Hindess

Applied patches in r496051.  Please confirm they have been applied as expected.

> [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns
value greater than RI returns
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2701
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2701
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Assigned To: Mark Hindess
>         Attachments: BasicProgressBarUI-patch.txt, H2701-BasicProgressBarUITest.patch
>
>
> Compatibility
> According to specification for getBoxLength(int availableLength,
> int otherDimension))the method "returns the size of the box dimension being
> determined; must be no larger than availableLength"
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicProgressBarUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {
>     public void testcase1() {                                    
>         testBasicProgressBarUI pb = new testBasicProgressBarUI();   
>         assertEquals(0, pb.getBoxLength(0, 1));            
>     }                                                                        
>     public void testcase2() {                                    
>         testBasicProgressBarUI pb = new testBasicProgressBarUI();   
>         assertEquals(8, pb.getBoxLength(50, 1));            
>     }                                                                        
> }
> class testBasicProgressBarUI extends BasicProgressBarUI {
>     public int getBoxLength(int a, int b)  {
>         return super.getBoxLength(a, b);        
>     } 
> }

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

        

Mime
View raw message