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

Consider other whitespace characters as line terminators for String.lines

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      The String.lines method (JDK-8200380) is well-documented in its handling of combinations of carriage return and line feed in delimiting lines of a string.

      There are potentially other Unicode whitespace characters which should be regarded as having a similar effect including:

      * U+0085 next line
      * U+2028 line separator
      * U+2029 paragraph separator

      The ASCII form feed and vertical tab would be other candidates.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: