harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Egor Pasko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1775) [drlvm][jit][unit] Classlib test org.apache.harmony.luni.tests.util.Base64Test fails in OPT mode
Date Wed, 11 Oct 2006 14:42:21 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1775?page=all ]

Egor Pasko updated HARMONY-1775:
--------------------------------

    Attachment: Decode.java

I simplified the test (Decode.java)

public class Decode {
    
	public static void main(String argv[]) {
        Decode.decode(0);
    }

    public static void decode(int len) {
        if (len / 4 * 3 == 0) {
            System.out.println("PASS");
            return;
        }
        System.out.println("FAIL");
    }
}

fails on OPT, funny, huh?

> [drlvm][jit][unit] Classlib test org.apache.harmony.luni.tests.util.Base64Test fails
in OPT mode
> ------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1775
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1775
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Elena Semukhina
>            Priority: Critical
>         Attachments: Base64.java, Decode.java, TestBase64.java
>
>
> Passes in JET while fails in OPT in the following way:
> >java -showversion -Xem:opt TestBase64
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
> n or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r454267, (Oct  9 2006), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> JNI.ExceptionDescribe: java/lang/ArrayIndexOutOfBoundsException:
> java/lang/ArrayIndexOutOfBoundsException : (null)
>  at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
>  at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
>  at TestBase64.main (TestBase64.java: 6)
> Error occured while running starter class: Exception left unhandled before destr
> oying VM
> JNI.ExceptionDescribe: java/lang/ArrayIndexOutOfBoundsException:
> java/lang/ArrayIndexOutOfBoundsException : (null)
>  at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
>  at org.apache.harmony.luni.util.Base64.decode (Base64.java: -1)
>  at TestBase64.main (TestBase64.java: 6)
> Error occured in starter class shutdown() method.
> A simple standalone test to reproduce the issue is attached.

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