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

No CCC for LinkedBlockingDeque#addAll

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: