harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (HARMONY-2854) [classlib][swing] j.s.plaf.basic.BasicScrollBarUI.getTrackBounds() returns not null on Harmony
Date Fri, 02 Feb 2007 16:31:05 GMT

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

Alexey A. Ivanov reopened HARMONY-2854:
---------------------------------------


The provided test case fails for me:

javax.swing.plaf.basic.BasicScrollBarUITest
testGetTrackThumbNewUI(javax.swing.plaf.basic.BasicScrollBarUITest)
junit.framework.AssertionFailedError
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertNull(Assert.java:233)
	at junit.framework.Assert.assertNull(Assert.java:226)
	at javax.swing.plaf.basic.BasicScrollBarUITest.testGetTrackThumbNewUI(BasicScrollBarUITest.java:63)
	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
	at java.lang.reflect.Method.invoke(Method.java:258)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
	at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java:122)
	at javax.swing.BasicSwingTestCase$1.run(BasicSwingTestCase.java:136)
	at java.lang.Thread.run(Thread.java:872)



> [classlib][swing] j.s.plaf.basic.BasicScrollBarUI.getTrackBounds() returns not null on
Harmony
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2854
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2854
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: H2854-BasicScrollBarUI.patch, H2854-BasicScrollBarUITest.patch,
H2854.java, H2854.java
>
>
> ====== Code to Reproduce ======
> import java.awt.Rectangle;
> import javax.swing.plaf.basic.BasicScrollBarUI;
> public class Test {
>     private static class TestBasicScrollBarUI extends BasicScrollBarUI {
>         @Override
>         public Rectangle getTrackBounds() {
>             return super.getTrackBounds(); 
>         } 
>     }
>     public static void main(String[] args) {
>         TestBasicScrollBarUI sbr = new TestBasicScrollBarUI();
>         System.err.println("res=" + sbr.getTrackBounds());
>     }
> }
> ======= end of code =======
> ------- Harmony -------
> res=java.awt.Rectangle[x=0,y=0,width=0,height=0]
> --------------
> ------- RI -------
> res=null
> --------------

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