You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexander Simbirtsev (JIRA)" <ji...@apache.org> on 2006/12/14 15:30:26 UTC

[jira] Created: (HARMONY-2701) [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns

[classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns
------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2701
                 URL: http://issues.apache.org/jira/browse/HARMONY-2701
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexander Simbirtsev


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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2701) [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess closed HARMONY-2701.
---------------------------------


Verified.  Thanks.

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

        

[jira] Updated: (HARMONY-2701) [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2701?page=all ]

Dmitry Irlyanov updated HARMONY-2701:
-------------------------------------

    Attachment: H2701-BasicProgressBarUITest.patch

Regression test addition

> [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2701
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2701
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2701) [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns

Posted by "Alexander Simbirtsev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464685 ] 

Alexander Simbirtsev commented on HARMONY-2701:
-----------------------------------------------

Works fine! Thanks Mark!

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

        

[jira] Updated: (HARMONY-2701) [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns

Posted by "Alexander Simbirtsev (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2701?page=all ]

Alexander Simbirtsev updated HARMONY-2701:
------------------------------------------

    Attachment: BasicProgressBarUI-patch.txt

Here's the proposed fix

> [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2701
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2701
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: BasicProgressBarUI-patch.txt
>
>
> 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-2701) [classlib][swing] javax.swing.plaf.basic.BasicProgressBarUI.getBoxLength(int, int) returns value greater than RI returns

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ 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