harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elena Sayapina (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4332) [drlvm][kernel] Thread.enumerate(Thread[] array) throws unexpected ArrayIndexOutOfBoundsException if array.length = 0
Date Wed, 04 Jul 2007 07:47:04 GMT
[drlvm][kernel] Thread.enumerate(Thread[] array) throws unexpected ArrayIndexOutOfBoundsException
if array.length = 0
---------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-4332
                 URL: https://issues.apache.org/jira/browse/HARMONY-4332
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Elena Sayapina


Thread.enumerate(Thread[] array) throws unexpected ArrayIndexOutOfBoundsException if array.length
= 0

Please, consider the following code:

public class enumerateTest {

	public static void main(String[] args) {
		try {
			Thread.enumerate(new Thread[0]);
			System.out.println("TEST PASSED");
		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("TEST FAILED: unexpected " + e);
		}
	}
}

Output on Harmony- r552662:

Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors,
as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r552662, (Jul  3 2007), Windows/ia32/msvc 1310, release build
http://harmony.apache.org

java.lang.ArrayIndexOutOfBoundsException
        at java.lang.ThreadGroup.enumerate(ThreadGroup.java:519)
        at java.lang.ThreadGroup.enumerate(ThreadGroup.java:212)
        at java.lang.Thread.enumerate(Thread.java:344)
        at enumerateTest.main(enumerateTest.java:5)
TEST FAILED: unexpected java.lang.ArrayIndexOutOfBoundsException

Output on RI:

java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)

TEST PASSED


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