You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/12/12 11:56:23 UTC

[jira] Created: (HARMONY-2627) [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0

[classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0
---------------------------------------------------------------------------

                 Key: HARMONY-2627
                 URL: http://issues.apache.org/jira/browse/HARMONY-2627
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko


javax.swing.JTextField.getScrollOffset() returns 5 while RI returns 0.
Compatibility issue.

Code for reproducing:
import junit.framework.TestCase;
import javax.swing.*;

public class Test extends TestCase {       
    public void testcase1() {
        JTextField s = new JTextField();
        assertEquals(0, s.getScrollOffset());
    }
}

Output on Sun 1.5
=================
.
Time: 0.391

OK (1 test)

Output on Harmony:
==================
.F
Time: 1.953
There was 1 failure:
1) testcase1(Test)junit.framework.AssertionFailedError: expected:<0> but
was:<5>
        at Test.testcase1(Test.java:7)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

FAILURES!!!
Tests run: 1,  Failures: 1,  Errors: 0


-- 
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] Updated: (HARMONY-2627) [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2627?page=all ]

Alexey A. Ivanov updated HARMONY-2627:
--------------------------------------

    Attachment: H2627-JTextField.patch

The fix: removed conditional from JTextField.getScrollOffset() -- now it always returns the actual offset.

> [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2627
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2627
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: H2627-JTextField.patch, H2627-JTextFieldTest.patch
>
>
> javax.swing.JTextField.getScrollOffset() returns 5 while RI returns 0.
> Compatibility issue.
> Code for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> public class Test extends TestCase {       
>     public void testcase1() {
>         JTextField s = new JTextField();
>         assertEquals(0, s.getScrollOffset());
>     }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.391
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 1.953
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: expected:<0> but
> was:<5>
>         at Test.testcase1(Test.java:7)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

-- 
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] Updated: (HARMONY-2627) [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2627?page=all ]

Alexey A. Ivanov updated HARMONY-2627:
--------------------------------------

    Attachment: H2627-JTextFieldTest.patch

Regression test case

> [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2627
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2627
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: H2627-JTextFieldTest.patch
>
>
> javax.swing.JTextField.getScrollOffset() returns 5 while RI returns 0.
> Compatibility issue.
> Code for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> public class Test extends TestCase {       
>     public void testcase1() {
>         JTextField s = new JTextField();
>         assertEquals(0, s.getScrollOffset());
>     }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.391
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 1.953
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: expected:<0> but
> was:<5>
>         at Test.testcase1(Test.java:7)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

-- 
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-2627) [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0

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

Alexey Petrenko closed HARMONY-2627.
------------------------------------


> [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2627
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2627
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Mark Hindess
>         Attachments: H2627-JTextField.patch, H2627-JTextFieldTest.patch
>
>
> javax.swing.JTextField.getScrollOffset() returns 5 while RI returns 0.
> Compatibility issue.
> Code for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> public class Test extends TestCase {       
>     public void testcase1() {
>         JTextField s = new JTextField();
>         assertEquals(0, s.getScrollOffset());
>     }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.391
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 1.953
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: expected:<0> but
> was:<5>
>         at Test.testcase1(Test.java:7)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2627) [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0

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

Denis Kishenko updated HARMONY-2627:
------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2627
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2627
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: H2627-JTextField.patch, H2627-JTextFieldTest.patch
>
>
> javax.swing.JTextField.getScrollOffset() returns 5 while RI returns 0.
> Compatibility issue.
> Code for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> public class Test extends TestCase {       
>     public void testcase1() {
>         JTextField s = new JTextField();
>         assertEquals(0, s.getScrollOffset());
>     }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.391
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 1.953
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: expected:<0> but
> was:<5>
>         at Test.testcase1(Test.java:7)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

-- 
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-2627) [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0

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

Mark Hindess resolved HARMONY-2627.
-----------------------------------

    Resolution: Fixed
      Assignee: Mark Hindess

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

> [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2627
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2627
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Mark Hindess
>         Attachments: H2627-JTextField.patch, H2627-JTextFieldTest.patch
>
>
> javax.swing.JTextField.getScrollOffset() returns 5 while RI returns 0.
> Compatibility issue.
> Code for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> public class Test extends TestCase {       
>     public void testcase1() {
>         JTextField s = new JTextField();
>         assertEquals(0, s.getScrollOffset());
>     }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.391
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 1.953
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: expected:<0> but
> was:<5>
>         at Test.testcase1(Test.java:7)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

-- 
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] Commented: (HARMONY-2627) [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472576 ] 

Alexey A. Ivanov commented on HARMONY-2627:
-------------------------------------------

Verified: works fine.
Thank you, Mark.

> [classlib][swing] JTextField.getScrollOffset() returns 5 while RI returns 0
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2627
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2627
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Mark Hindess
>         Attachments: H2627-JTextField.patch, H2627-JTextFieldTest.patch
>
>
> javax.swing.JTextField.getScrollOffset() returns 5 while RI returns 0.
> Compatibility issue.
> Code for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> public class Test extends TestCase {       
>     public void testcase1() {
>         JTextField s = new JTextField();
>         assertEquals(0, s.getScrollOffset());
>     }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.391
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 1.953
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: expected:<0> but
> was:<5>
>         at Test.testcase1(Test.java:7)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.