harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6336) ArrayIndexOutOfBoundsException thrown without index information; generally AIOBE is thrown without specifiying the index.
Date Mon, 07 Sep 2009 14:52:57 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752156#action_12752156
] 

Tim Ellison commented on HARMONY-6336:
--------------------------------------

More enhancements committed up to r812158 which should cover a large number of the class library
cases.

The example you give above is a JIT issue.  The interpreter does invoke the constructor with
the int arg and prints
java.lang.ArrayIndexOutOfBoundsException: 3

whereas the JIT does not.  I'll re-assign to the JIT for further consideration.


> ArrayIndexOutOfBoundsException thrown without index information; generally AIOBE is thrown
without specifiying the index.
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6336
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6336
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>    Affects Versions: 5.0M11
>            Reporter: Sebb
>            Priority: Minor
>
> Following code:
>     public static void main(String[] arg) throws Exception {
>         int a[] = {1,2,3};
>         a[3] = 4;
>     }
> Generates 
> java.lang.ArrayIndexOutOfBoundsException 
> in Harmony but 
> java.lang.ArrayIndexOutOfBoundsException 3
> with Sun Java 1.4
> A quick search of the class library shows that ArrayIndexOutOfBoundsException is frequently
called without providing the index.
> This makes debugging index problems very much harder that it ought to be.

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


Mime
View raw message