harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Khaschansky (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1975) [classlib][swing] Further generification of the javax.swing.table, javax.swing.text.* and javax.swing.tree packages.
Date Fri, 27 Oct 2006 09:59:18 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1975?page=comments#action_12445135 ] 
            
Oleg Khaschansky commented on HARMONY-1975:
-------------------------------------------

This modification was based on the following JAPI message:
method javax.swing.text.GapContent.replace(int, int, java.lang.Object, int): doesn't throw
javax.swing.text.BadLocationException in jdk15, but throws javax.swing.text.BadLocationException
in harmony

I thought that GapContent modification is so minor that is doesn't require a test case. Actually,
if you look into GapContentEdit.insertItems and GapContentEdit.removeItems - they do the same
already. The following test case shows the difference between RI behavior and Harmony:
-----------------------------------------------------------------------
import javax.swing.text.GapContent;

public class test{

    public static void main(String[] args) {
        MyGC gc = new MyGC();
        gc.callReplace(-3, 0, null, 0);
    }

    public static class MyGC extends GapContent {
        public void callReplace(int pos, int rmSize, Object addItems, int addSize) {
            try {
                this.replace(pos, rmSize, addItems, addSize);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
-----------------------------------------------------------------------



> [classlib][swing] Further generification of the javax.swing.table, javax.swing.text.*
and javax.swing.tree packages.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1975
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1975
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: Classlib
>            Reporter: Oleg Khaschansky
>         Assigned To: Stepan Mishura
>         Attachments: harmony-1975.patch
>
>
> This subtask will include a new patch for generification of the javax.swing.table, javax.swing.text.*
and javax.swing.tree packages. I'll provide this patch.

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

        

Mime
View raw message