JDK-8215682 : Remove compiler support for Raw String Literals from JDK 12
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P2
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 12
  • Submitted: 2018-12-19
  • Updated: 2019-01-09
  • Resolved: 2019-01-09
Related Reports
CSR :  
Relates :  
Description
Summary
-------

With the withdrawal of [JEP 326: Raw String Literals (Preview)](https://openjdk.java.net/jeps/326) from JDK 12, code introduced into the Java compiler to support the feature must be removed. (See the [withdrawal notice](http://mail.openjdk.java.net/pipermail/jdk-dev/2018-December/002469.html) and [rationale](http://mail.openjdk.java.net/pipermail/jdk-dev/2018-December/002402.html).)

Problem
-------

The Java compiler in JDK 12 supports Raw String Literals as a preview feature, but the Java language in Java SE 12 does not support them in any way.

Solution
--------

Undo all changesets which implement the specification of Raw String Literals given by [JDK-8206982](https://bugs.openjdk.java.net/browse/JDK-8206982).

Specification
-------

The Java language in Java SE 12 accepts the same kinds of literal as the Java language in Java SE 11 ([JLS 3.10](https://docs.oracle.com/javase/specs/jls/se11/html/jls-3.html#jls-3.10)). Consequently, the Java compiler in JDK 12 will support the same kinds of literal as the Java compiler in JDK 11.

The previously proposed language changes in the raw-string-literals attachment are reverted.
Comments
Moving to Approved.
09-01-2019

Moving to Provisional. I'd prefer a representation of the changes being reverted more indirectly indicated in this CSR,such as by re-attached the HTML file from JDK-8206982.
08-01-2019

Looks good.
03-01-2019