JDK-8241745 : Implement Text Blocks as a standard feature in javac
  • Type: CSR
  • Component: tools
  • Sub-Component: javac
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 15
  • Submitted: 2020-03-27
  • Updated: 2020-05-01
  • Resolved: 2020-04-08
Related Reports
Blocks :  
CSR :  
Relates :  
Description
Summary
-------

Text blocks were proposed by JEP 355 in early 2019 as a follow-on to explorations begun in JEP 326 (Raw String Literals), which was targeted to JDK 12 but later withdrawn. JEP 355 was targeted to JDK 13 in June 2019 as a preview feature. Feedback on JDK 13 suggested that the feature should be previewed again, with the addition of two new escape sequences, so the successor JEP 368 was targeted to JDK 14 in November 2019. Feedback on JDK 14 suggests that the Text Blocks feature is now ready to be made final and permanent.

Problem
-------

The preview status of Text Blocks prevents usage in standard Java.

Solution
--------

Remove the preview status requirement from Text Blocks.

Specification
-------------

See attachment below for spec updates.

As a consequence of becoming a standard feature, messages emitted by `javac` for using a preview feature, etc. no longer occur.
Comments
Moving to Approved.
08-04-2020

Just removing the preview-ness from the tests. Those changes will show in JDK-8241741.
07-04-2020

Other than removing the preview-ness, what changes, if are, are there from the prior round of previewing?
07-04-2020

Spec added.
07-04-2020

Moving to Provisional for JDK 15. This CSR or another CSR should include the JLS changes associated with making text blocks a permanent feature.
27-03-2020