You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Fursov (JIRA)" <ji...@apache.org> on 2007/04/19 13:24:15 UTC

[jira] Created: (HARMONY-3707) [classlib][luni] Character.getType() return different values for 'int' and 'char' params

[classlib][luni] Character.getType() return different values for 'int' and 'char' params
----------------------------------------------------------------------------------------

                 Key: HARMONY-3707
                 URL: https://issues.apache.org/jira/browse/HARMONY-3707
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Mikhail Fursov


Check this test. It passes on RI but fails on Harmony.

public class Test {
    public static void main( String argv[] ) {
        for (int i=0;i<Character.MAX_VALUE;i++) {
            boolean ok = Character.getType((char)i)==Character.getType(i);
            if (!ok) {
                System.out.println("Error on i="+i);
                return;
            }
        }
        System.out.println("PASSED");
    }

}


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


[jira] Updated: (HARMONY-3707) [classlib][luni] Character.getType() returns different values for 'int' and 'char' params

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

Mikhail Fursov updated HARMONY-3707:
------------------------------------

    Summary: [classlib][luni] Character.getType() returns different values for 'int' and 'char' params  (was: [classlib][luni] Character.getType() return different values for 'int' and 'char' params)

> [classlib][luni] Character.getType() returns different values for 'int' and 'char' params
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3707
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3707
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mikhail Fursov
>
> Check this test. It passes on RI but fails on Harmony.
> public class Test {
>     public static void main( String argv[] ) {
>         for (int i=0;i<Character.MAX_VALUE;i++) {
>             boolean ok = Character.getType((char)i)==Character.getType(i);
>             if (!ok) {
>                 System.out.println("Error on i="+i);
>                 return;
>             }
>         }
>         System.out.println("PASSED");
>     }
> }

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


[jira] Commented: (HARMONY-3707) [classlib][luni] Character.getType() returns different values for 'int' and 'char' params

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

Tony Wu commented on HARMONY-3707:
----------------------------------

The root cause is that there are 2 implementations for method getType, the getType(I) delegates to icu's impl and the getType(C) takes the original impl. We will drop the original because it is unicode 3.1 compatible whereas jdk5 should be 4.0 compatible.

> [classlib][luni] Character.getType() returns different values for 'int' and 'char' params
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3707
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3707
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mikhail Fursov
>
> Check this test. It passes on RI but fails on Harmony.
> public class Test {
>     public static void main( String argv[] ) {
>         for (int i=0;i<Character.MAX_VALUE;i++) {
>             boolean ok = Character.getType((char)i)==Character.getType(i);
>             if (!ok) {
>                 System.out.println("Error on i="+i);
>                 return;
>             }
>         }
>         System.out.println("PASSED");
>     }
> }

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