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

Inconsistency in spec for RenderingHints.entrySet()

XMLWordPrintable

    • 2d
    • b10
    • generic
    • generic



      Name: vi140966 Date: 08/11/2004


      Inconsistency in specification for RenderingHints.entrySet().
      The specification (JavaTM 2 Platform Standard Ed. 5.0) states
      "Returns a Set view of the mappings contained in this RenderingHints.
      Each element in the returned Set is a Map.Entry. The Set is backed by
      the RenderingHints,
      so changes to the RenderingHints are reflected in the Set, and
      vice-versa. If the RenderingHints
      is modified while while an iteration over the Set is in progress, the
      results of the iteration are undefined.

      The entrySet returned from a RenderingHints object is not modifiable."

      The method description says that the Set can be changed so these
      modifications are reflected in the RenderingHints.
      However the last statement prohibits any modifications of this Set. So
      this needs to be clarified.

      ======================================================================

            serb Sergey Bylokhov
            visaenko Vasily Isaenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: