Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8181580

No CCC for LinkedBlockingDeque#addAll

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Approved
    • Icon: P3 P3
    • 9
    • 9
    • core-libs

      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.

            smarks Stuart Marks
            bnallakaluva Bharath Nallakaluva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: