[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bug #12853] LinkedHashMap throws NullPointerException when
From: |
anonymous |
Subject: |
[commit-cp] [bug #12853] LinkedHashMap throws NullPointerException when using access order |
Date: |
Thu, 28 Apr 2005 00:59:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050418 Firefox/1.0.3 (Debian package 1.0.3-1) |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12853>
Summary: LinkedHashMap throws NullPointerException when
using access order
Project: classpath
Submitted by: None
Submitted on: Thu 04/28/2005 at 00:59
Category: classpath
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
When access order is used, a NullPointerException is thrown because root
becomes null when size() > 0. This is caused by the access() code violating
the invariant that root.pred points to the newest object. The attached
one-line patch fixes this instance of the problem, at least.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 04/28/2005 at 00:59 Name: LinkedHashMap.patch Size: 308B By:
None
Patch for fix
<http://savannah.gnu.org/bugs/download.php?item_id=12853&item_file_id=2446>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12853>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bug #12853] LinkedHashMap throws NullPointerException when using access order,
anonymous <=