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

Handle control characters in java_lang_String::print

XMLWordPrintable

    • b20

        java_lang_String::print(...) lets the VM display String objects. This can be called for debugging (debug.cpp) and by the fatal error report (hs_err).

        Showing raw Strings means embedded control characters can interfere with the format (or, can be invisible). We should format control characters specifically, e.g. show their hex value, rather than include actual newlines, tabs and other control characters in the output.

              kevinw Kevin Walls
              kevinw Kevin Walls
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: