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

Refer to JEP 378 in Programmer's Guide to Text Blocks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17.0.1
    • Component/s: docs
    • Labels:
      None

      Description

      Programmer's Guide to Text Blocks ( https://docs.oracle.com/en/java/javase/17/text-blocks/index.html ) refers to two JEPs on Text Blocks. The first time it refers to the standard feature JEP 378, the second time it refers to the first preview feature JEP 355:

      > JEP 378 adds the language feature text blocks to Java SE 15 and later. While the JEP explains the feature in great detail, it's not always apparent how the feature can and should be used.

      > The algorithm for determining incidental white space is described in JEP 355 in scary detail.

      The context of these references suggests that the reference to JEP 355 is simply outdated and should be changed to a reference to JEP 378.

      The Description section of JEP 378 explicitly states that:

      > This section is identical to the same section in this JEP's predecessor, JEP 355, except for the addition of the subsection on new escape sequences.

        Attachments

          Activity

            People

            Assignee:
            rgallard Raymond Gallardo
            Reporter:
            prappo Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: