Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6407460
Votes 0
Synopsis (coll) provide Collections helper methods for new interfaces in JDK 1.6
Category java:classes_util
Reported Against
Release Fixed
State 3-Accepted, request for enhancement
Priority: 4-Low
Related Bugs
Submit Date 03-APR-2006
Description
A DESCRIPTION OF THE REQUEST :
java.util.Collections contains methods checkedFOO, synchronizedFOO(), and unmodifiableFOO() for FOO in { Collection, List, Map, ...}. With Java 6 / JDK 1.6 new collections interfaces java.util.Deque and java.util.Queue were added, but java.util.Collections does not yet provide helper methods for those new interfaces.

JUSTIFICATION :
For the same reason that there exists e.g. synchronizedList() (e.g. for request queues in a multi-threaded application), there should be synchronizedDeque() etc.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Analogous to helper methods for existing collections intefaces.

CUSTOMER SUBMITTED WORKAROUND :
Can use synchronizedCollection(), unmodifiableCollection() for some applications, but methods specific to the Queue and Deque interfaces cannot be called.
Posted Date : 2006-04-03 08:39:10.0
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 12-FEB-2009
outspokengolem
Why is this low priority? It's a rather large gap in the API as it stands.

NavigableMap also needs similar methods.



PLEASE NOTE: JDK6 is formerly known as Project Mustang