harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)
Date Thu, 07 Dec 2006 12:29:25 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2454?page=comments#action_12456387 ] 
            
Alexey Petrenko commented on HARMONY-2454:
------------------------------------------

Pavel, can you please provide a unit test?

> [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2454
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2454
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/ IA32
>            Reporter: Pavel Ozhdikhin
>            Priority: Minor
>         Attachments: char.patch, test.java
>
>
> The call to java.lang.Character.valueOf((char)512) fails with ArrayIndexOutOfBoundsException.
512 is the size of the cache for the Character objects and the check for cache boundaries
is implemented incorrectly. The attached patch gives a clue though I have not tested it.

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