-
Bug
-
Resolution: Approved
-
P3
-
9
-
b156
Spec of overriding method: LinkedBlockingDeque#addAll :
“Appends all of the elements in the specified collection to **the end of this deque**, in the order that they are returned by the specified collection's iterator. Attempts to addAll of a deque to itself result in IllegalArgumentException.”
Spec of overridden method: AbstractQueue#addAll (taking excerpts here which are relevant)
“Adds all of the elements in the specified collection to this queue. This implementation iterates over the specified collection, and adds each element returned by the iterator to this queue, in turn.”
**Also besides this, this spec has an extra “Throws: ClassCastException –“ which is absent in overriding method.**
The overriding method mentions the “end of this deque” and this information is absent in the super class spec which just says “adds” but does not mean adding to the last “
I am presuming this to be a noCCC candidate. Could you please confirm.
“Appends all of the elements in the specified collection to **the end of this deque**, in the order that they are returned by the specified collection's iterator. Attempts to addAll of a deque to itself result in IllegalArgumentException.”
Spec of overridden method: AbstractQueue#addAll (taking excerpts here which are relevant)
“Adds all of the elements in the specified collection to this queue. This implementation iterates over the specified collection, and adds each element returned by the iterator to this queue, in turn.”
**Also besides this, this spec has an extra “Throws: ClassCastException –“ which is absent in overriding method.**
The overriding method mentions the “end of this deque” and this information is absent in the super class spec which just says “adds” but does not mean adding to the last “
I am presuming this to be a noCCC candidate. Could you please confirm.
- relates to
-
JDK-8169748 LinkedTransferQueue bulk remove is O(n^2)
-
- Resolved
-
-
JDK-8167202 ArrayDeque improvements
-
- Closed
-
-
JDK-8181334 add spec for Deque.addAll
-
- Closed
-