Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8241745

Implement Text Blocks as a standard feature in javac

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      No change in behaviour. Provides unrestricted use of a new feature.
    • Interface Kind:
      Language construct
    • Scope:
      SE

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlaskey Jim Laskey
              Reporter:
              jlaskey Jim Laskey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: