You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Irina Arkhipets (JIRA)" <ji...@apache.org> on 2006/10/13 09:13:36 UTC

[jira] Updated: (HARMONY-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

     [ http://issues.apache.org/jira/browse/HARMONY-1853?page=all ]

Irina Arkhipets updated HARMONY-1853:
-------------------------------------

    Attachment: test.java

test source file

> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Attachments: test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

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