JDK-4744966 : (coll spec) Small AbstractSet documentation error
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2002-09-10
  • Updated: 2020-05-02
Related Reports
Duplicate :  
Relates :  
Description

Name: nt126004			Date: 09/10/2002


A DESCRIPTION OF THE PROBLEM :
In the documentation is written:

Note that this class does not override any of the
implementations from the AbstractCollection class. It merely
adds implementations for equals and hashCode.

This is not true for 100%. The implementation for removeAll
is overwritten...

see url : 
http://java.sun.com/j2se/1.4/docs/api/java/util/AbstractSet.html#removeAll(java.util.Collection)

REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 163536) 
======================================================================

Comments
EVALUATION Description is correct. Suggest this rewording: * Note that, * aside from an optimization in the <tt>removeAll</tt> method, * this class does not override any of the implementations from * the <tt>AbstractCollection</tt> class. It merely adds implementations * for <tt>equals</tt> and <tt>hashCode</tt>.<p> ###@###.### 2005-2-02 01:08:34 GMT ###@###.### 2005-2-02 01:09:54 GMT
02-02-2005