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

javac could consider using Character.isWhiteSpace

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Rejected
    • Icon: P5 P5
    • None
    • 1.4.2
    • tools
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: