Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 64700 invoked from network); 14 Jun 2007 03:08:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2007 03:08:47 -0000 Received: (qmail 69130 invoked by uid 500); 14 Jun 2007 03:08:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 69117 invoked by uid 500); 14 Jun 2007 03:08:50 -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 69104 invoked by uid 99); 14 Jun 2007 03:08:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 20:08:50 -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, 13 Jun 2007 20:08:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 454EB7140D2 for ; Wed, 13 Jun 2007 20:08:26 -0700 (PDT) Message-ID: <26021873.1181790506272.JavaMail.jira@brutus> Date: Wed, 13 Jun 2007 20:08:26 -0700 (PDT) From: "Elena Sayapina (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4147) [classlib][luni] java.util.BitSet(Integer.MAX_VALUE) throws unexpected NegativeArraySizeException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][luni] java.util.BitSet(Integer.MAX_VALUE) throws unexpected NegativeArraySizeException ------------------------------------------------------------------------------------------------- Key: HARMONY-4147 URL: https://issues.apache.org/jira/browse/HARMONY-4147 Project: Harmony Issue Type: Bug Components: Classlib Reporter: Elena Sayapina java.util.BitSet(Integer.MAX_VALUE) throws unexpected NegativeArraySizeException The following piece of code fails on Harmony-r545749, but passes on Harmony-r545092: import java.util.BitSet; public class bitsetTest { public static void main(String[] args) { BitSet bitset = null; try { bitset = new BitSet(Integer.MAX_VALUE); System.out.println("TEST PASSED"); } catch (OutOfMemoryError e) { System.out.println("TEST PASSED: " + e); } catch (Exception e) { System.out.println("TEST FAILED: " + e); } } } Output on Harmony-r546722: 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 = r546722, (Jun 13 2007), Windows/ia32/msvc 1310, debug build http://harmony.apache.org Max heap size: can't be reserved, reduced to 679 MB according to virtual memory limitation. TEST FAILED: java.lang.NegativeArraySizeException Output on Harmony-r545092 with -Xmx300M: 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 = r545092, (Jun 7 2007), Windows/ia32/msvc 1310, release build http://harmony.apache.org The GC did not provide gc_add_weak_root_set_entry() TEST PASSED Output on RI with -Xmx300M: 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.