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

Charset.contains(Charset) spec self-contradictory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-libs

      java.nio.charset.Charset.contains(Charset cs) is specified as follows:

           This method computes an approximation of the containment relation: If it returns true then the given charset is known to be contained by this charset; if it returns false, however, then it is not necessarily the case that the given charset is not contained in this charset.

      But then the @returns clause says:

          Returns:
              true if, and only if, the given charset is contained in this charset

      This should be amended to


          Returns:
              true if the given charset is contained in this charset
      ###@###.### 10/26/04 02:28 GMT

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: