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

Jim Laskey james.laskey at oracle.com
Fri Nov 8 13:15:42 UTC 2019


webrev: http://cr.openjdk.java.net/~jlaskey/8233116/webrev.01/index.html <http://cr.openjdk.java.net/~jlaskey/8233116/webrev.01/index.html>

> On Nov 7, 2019, at 5:23 PM, Brent Christian <brent.christian at oracle.com> wrote:
> Should the new escapes be added to the table in the String.translateEscapes() JavaDoc?
> -Brent
> 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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20191108/a26168fb/attachment.html>

More information about the compiler-dev mailing list