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

javac could consider using Character.isWhiteSpace

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The JLSv2 section 3.6 only defines five characters as whitespace (space, tab, form feed, newline, carriage return). In particular, none of the non-ASCII Unicode space characters are defined as white space. The method Character.isWhiteSpace claims it "Determines if the specified character is white space according to Java." This mehtod admits many Unicode characters. Other portions of the lexical structure portion of the JLS have been updated to refer to new, more Unicode-aware, methods in Character. It seems the white space definition should be similarly updated.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              darcy Joe Darcy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: