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: 6620164
Votes 0
Synopsis Clarify that BlockingQueue.drainTo() never blocks
Category java:classes_util_concurrent
Reported Against
Release Fixed
State 6-Fix Understood, bug
Priority: 4-Low
Related Bugs
Submit Date 23-OCT-2007
Description
A DESCRIPTION OF THE REQUEST :
The documentation for BlockingQueue.drainTo() does not indicate that the operation does not block.  Please update the documentation to make this clear.

JUSTIFICATION :
Better documentation would be more helpful to new users of the class.
Posted Date : 2007-10-23 01:32:50.0
Work Around
N/A
Evaluation
The existing documentation does not state explicitly, but strongly implies
that drainTo never blocks.  If it did block, what event would it wait for?
Perhaps for some element to become available?
Yes, it might be worth adding some clarification here.
Posted Date : 2007-10-28 16:21:21.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang