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.
- csr of
-
JDK-8241741 Implement Text Blocks as a standard feature in javac
- Resolved
- is blocked by
-
JDK-8242284 Bootstrap javac having problem finding features flags
- Closed
- relates to
-
JDK-8242149 JLS changes for Text Blocks
- Resolved