RFR: JDK-8233117 Escape Sequences For Line Continuation and White Space (Preview)

Brent Christian brent.christian at oracle.com
Thu Nov 7 21:23:54 UTC 2019

Should the new escapes be added to the table in the 
String.translateEscapes() JavaDoc?


On 11/7/19 6:22 AM, Jim Laskey wrote:
> Please review the following code changes. Provides for the introduction of two new escape sequences \<line-terminator> and \s.  \<line-terminator> allows developers to express unwieldy string literals in a text block as a cluster of short single line segments. The second is to allow developers to express ASCII space, much like \t for tab. The changes are primarily in the compiler, with some small changes in String::translateEscapes. Small changeset overall.
> Thank you.
> -- Jim
> webrev: http://cr.openjdk.java.net/~jlaskey/8233116/webrev/index.html <http://cr.openjdk.java.net/~jlaskey/8233116/webrev/index.html>
> jbs: https://bugs.openjdk.java.net/browse/JDK-8233116 <https://bugs.openjdk.java.net/browse/JDK-8233116>
> csr: https://bugs.openjdk.java.net/browse/JDK-8233117 <https://bugs.openjdk.java.net/browse/JDK-8233117>

More information about the compiler-dev mailing list