Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 7175 invoked from network); 4 Jul 2007 07:47:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 07:47:25 -0000 Received: (qmail 8409 invoked by uid 500); 4 Jul 2007 07:47:28 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 8393 invoked by uid 500); 4 Jul 2007 07:47:28 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 8384 invoked by uid 99); 4 Jul 2007 07:47:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 00:47:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 00:47:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B55257141EB for ; Wed, 4 Jul 2007 00:47:04 -0700 (PDT) Message-ID: <28708337.1183535224737.JavaMail.jira@brutus> Date: Wed, 4 Jul 2007 00:47:04 -0700 (PDT) From: "Elena Sayapina (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4332) [drlvm][kernel] Thread.enumerate(Thread[] array) throws unexpected ArrayIndexOutOfBoundsException if array.length = 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [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.