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

(coll) Collections.newSetFromMap, asLifoQueue should delegate toString to wrapped collection

XMLWordPrintable

      Jason writes:

      The SetFromMap and AsLIFOQueue toString method call the toString methods
      available from the collections given. For instance, the key set from the
      Hashtable has a thread-safe toString method but if you wrap a Hashtable
      using the SetFromMap you might get a ConcurrentModificationException when
      invoking toString. The AsLIFOQueue most likely won't see the
      ConcurrentModificationException (thank you weakly consistent) but might
      perform fewer acquire/release of locks like in the LinkedBlockingDeque case.

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: