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

sun.net.TelnetXXXStream problems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • core-libs
    • beta
    • x86
    • windows_nt



      Name: diC59631 Date: 06/04/98


      I know these are undocumented/unsupported classes,
      but ...

      1. TelnetOutputStream never clears "seenCR".
      It should do this if seenCR is true and '\n'
      is seen. The effect in stickyCRLF mode
      is that once a CR is seen, every following
      input byte gets a null appended to it, e.g.
      "\rhello" becomes
      "\r\u0000h\u0000e\u0000l\u0000l\u0000o\u0000".

      2. TelnetInputStream lacks an API for
      setting/clearing stickyCRLF mode.
      TelnetOutputStream has one.

      3. Both TelnetInputStream and TelnetOutputStream
      should have an API for setting/clearing binary mode,
      not just a public boolean variable.

      These problems have been there unchanged since
      JDK 1.0.2 at least.
      (Review ID: 33024)
      ======================================================================

            jccollet Jean-Christophe Collet (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: