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

java.lang.Character.isJavaIdentifierPart Spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.8
    • core-libs
    • beta
    • generic
    • generic
    • Verified



      Name: rlT66838 Date: 02/26/2000


      java version "1.1.7b"

      In the documentation of the method java.lang.Character.isJavaIdentifierPart(),
      the last group of characters is described with the term "an ignorable control
      character". This term is missleading and wrong. What is really intended are the
      characters returned by isIdentifierIgnorable(). The Spec should be changed
      accordingly.

      start citation]
      Determines if the specified character may be part of a Java identifier
      as other than the first character. A character may be part of a Java
      identifier if and only
            if it is one of the following:
                  a letter
                  a currency symbol (such as "$")
                  a connecting punctuation character (such as "_").
                  a digit
                  a numeric letter (such as a Roman numeral character)
                  a combining mark
                  a non-spacing mark
                  an ignorable control character
      [end citation]

      The term "ignorable control character" has no meaning in the Unicode
      standard. Instead, the term refers to all the Unicode characters for
      which isIdentifierIgnorable() returns true. I suggest to replace the
      line

                  an ignorable control character
      by

                  one of the Unicode characters for which isIdentifierIgnorable() returns true

      (Review ID: 101062)
      ======================================================================

            joconnersunw John Oconner (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: