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

Jim Laskey james.laskey at oracle.com
Thu Nov 7 14:22:38 UTC 2019


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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20191107/92563ace/attachment.html>


More information about the compiler-dev mailing list