You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Roman S. Bushmanov (JIRA)" <ji...@apache.org> on 2007/02/21 15:12:05 UTC

[jira] Commented: (HARMONY-3215) [classlib][text] Compatibility: default implementation returned by java.text.Collator.getInstance() behaves differently than RI

    [ https://issues.apache.org/jira/browse/HARMONY-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474706 ] 

Roman S. Bushmanov commented on HARMONY-3215:
---------------------------------------------

This simple testcase reproduces the problem.

Harmony prints "1" while BEA JRockit(R) 1.5.0_03  prints "-1".

----------------------- Test.java ----------------------
import java.text.Collator;
import java.util.Locale;

public class Test{
    public static void main(String[] args){
        Collator collator = Collator.getInstance(Locale.US);
        System.out.println(collator.compare("ab","a-b"));
}
------------------------------------------------------------

} 

> [classlib][text] Compatibility: default implementation returned by java.text.Collator.getInstance() behaves differently than RI
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3215
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3215
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>
> The problem  was identified while running Eclipse on Harmony JRE. 
> Eclipse uses java.text.Collator to sort items in different views, for example projects list in Import Existing Project Wizard. As result project names may appear in different orders when Eclipse runs on Harmony and  RI.

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