Charset.contains(Charset) spec self-contradictory

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 6
    • Component/s: 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

            Assignee:
            Xueming Shen
            Reporter:
            Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: