This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/12664] New: WeakHashMap cannot handle initial capacity of 0
- From: "scgmille at freenetproject dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2003 18:52:05 -0000
- Subject: [Bug libgcj/12664] New: WeakHashMap cannot handle initial capacity of 0
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12664
Summary: WeakHashMap cannot handle initial capacity of 0
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: scgmille at freenetproject dot org
CC: gcc-bugs at gcc dot gnu dot org
java.util.WeakHashMap cannot handle being created with an initial capacity of 0.
Doing so causes the bucket size to be 0, which is then used by modulo (%) in
hash(), triggering a division by zero error.