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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 21
    • 21
    • core-libs
    • b20
    • generic
    • generic

    Description

      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)
        

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: