(ch) Channels.newReader(ReadableByteChannel,Charset) refers to csName

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 21
    • Affects Version/s: 21
    • Component/s: core-libs
    • b20
    • generic
    • generic

      The specification of Channels.newReader(ReadableByteChannel,Charset) states "behaves in exactly the same way as the expression

           Channels.newReader(ch, Charset.forName(csName).newDecoder(), -1)"

      but there is no csName parameter. This should instead be

           Channels.newReader(ch, charset.newDecoder(), -1)
        

            Assignee:
            Brian Burkhalter
            Reporter:
            Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: