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

PrintSteam.print() interface change in java 1.4.0-beta_refresh

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • sparc
    • solaris_8

      Name: nt126004 Date: 08/21/2001


      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b73)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b73, mixed mode)

      OS: Solaris 9 s9_43 SPARC


      Java 1.4 behaves differently than java 1.3 and earlier.

      Class: java.io.PrintStream
      Method: print(char)

      Before print(255) would pass 255 through un-changed. This is an escape
      char used by telnet, as well as others. I have a telnet emulation program
      that uses codes 250-255 which ran under Java 1.2 and 1.3 without issue.

      In java 1.4 beta, I have confirmed that java.io.PrintStream is translating
      the codes 250-255 into code 63 (a question mark). I have changed the code
      to call write(255) instead of print(255) as a workaround.

      However, I still regard this interface change as an actual bug. There is
      no character set translation going on, and should be no reason to translate
      these escape-chars to question marks.

      (Review ID: 130315)
      ======================================================================

            iris Iris Clark
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: