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

[jira] Created: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

[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


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

        

[jira] Updated: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Pavel Ozhdikhin updated HARMONY-2454:
-------------------------------------

    Attachment: test.java

Reproducer.

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

        

[jira] Assigned: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Alexei Zakharov reassigned HARMONY-2454:
----------------------------------------

    Assignee: Alexei Zakharov

> [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2454
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2454
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/ IA32
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: char.patch, CharacterTest.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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Mikhail Markov updated HARMONY-2454:
------------------------------------

    Attachment: CharacterTest.patch

Patch for the test. It seems that there was a typo in original 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, CharacterTest.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

        

[jira] Updated: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Alexei Zakharov updated HARMONY-2454:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2454
>                 URL: https://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, CharacterTest.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.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Alexei Zakharov closed HARMONY-2454.
------------------------------------


The fix was verified by Mikhail. JIRA closed.

> [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2454
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2454
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/ IA32
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: char.patch, CharacterTest.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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Pavel Ozhdikhin updated HARMONY-2454:
-------------------------------------

    Attachment: char.patch

A sample patch.

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

        

[jira] Resolved: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Alexei Zakharov resolved HARMONY-2454.
--------------------------------------

    Resolution: Fixed

I've applied the patch for CharacterTest at r522897. Mikhail, please verify.

> [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2454
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2454
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/ IA32
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: char.patch, CharacterTest.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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

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

Mikhail Markov commented on HARMONY-2454:
-----------------------------------------

Verified. Thanks, Alexei! 

> [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2454
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2454
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/ IA32
>            Reporter: Pavel Ozhdikhin
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: char.patch, CharacterTest.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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2454) [classlib][luni] ArrayIndexOutOfBoundsException when calling java.lang.Character.valueOf((char)512)

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
    [ 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