You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Elena Sayapina (JIRA)" <ji...@apache.org> on 2007/06/14 05:08:26 UTC
[jira] Created: (HARMONY-4147) [classlib][luni]
java.util.BitSet(Integer.MAX_VALUE) throws unexpected
NegativeArraySizeException
[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.
[jira] Closed: (HARMONY-4147) [classlib][luni]
java.util.BitSet(Integer.MAX_VALUE) throws unexpected
NegativeArraySizeException
Posted by "Elena Sayapina (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elena Sayapina closed HARMONY-4147.
-----------------------------------
Verified on Harmony-r54752-win-debug.
> [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
> Assignee: Tim Ellison
> Attachments: harmony-4147.diff
>
>
> 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.
[jira] Updated: (HARMONY-4147) [classlib][luni]
java.util.BitSet(Integer.MAX_VALUE) throws unexpected
NegativeArraySizeException
Posted by "Kelvin Ye (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Ye updated HARMONY-4147:
-------------------------------
Attachment: harmony-4147.diff
Would you please try the patch? I have also add test. Thanks very much!
> [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
> Attachments: harmony-4147.diff
>
>
> 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.
[jira] Resolved: (HARMONY-4147) [classlib][luni]
java.util.BitSet(Integer.MAX_VALUE) throws unexpected
NegativeArraySizeException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison resolved HARMONY-4147.
----------------------------------
Resolution: Fixed
Thanks Kelvin.
Patch applied to LUNI module at repo revision r547299.
Elena, please check this fully resolves your issue.
> [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
> Assignee: Tim Ellison
> Attachments: harmony-4147.diff
>
>
> 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.
[jira] Commented: (HARMONY-4147) [classlib][luni]
java.util.BitSet(Integer.MAX_VALUE) throws unexpected
NegativeArraySizeException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504621 ]
Tim Ellison commented on HARMONY-4147:
--------------------------------------
Likely caused by HARMONY-4051
> [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.
[jira] Assigned: (HARMONY-4147) [classlib][luni]
java.util.BitSet(Integer.MAX_VALUE) throws unexpected
NegativeArraySizeException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison reassigned HARMONY-4147:
------------------------------------
Assignee: Tim Ellison
> [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
> Assignee: Tim Ellison
> Attachments: harmony-4147.diff
>
>
> 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.