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

"\\s".translateEscapes() returns " "

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 15, 17
    • Fix Version/s: None
    • Component/s: tools

      Description

      A DESCRIPTION OF THE PROBLEM :
      The call to "\\s".translateEscapes() returns " ", while the expected result is "\s", similar to the call "\\n".translateEscapes() returns "\n".

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      JShell:
      "\s".translateEscapes() => " "
      "\\s".translateEscapes() => " "
      "\\n".translateEscapes() => "\n"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      See above
      ACTUAL -
      See above

      ---------- BEGIN SOURCE ----------
      See above
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            jlaskey Jim Laskey
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: