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

javac generates a warning when it should generate an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • tools
    • b23
    • generic
    • generic
    • Verified

      JLS says that only ASCII digits may be used in number literals and various escape sequences, e.g. \udddd, \xdd, etc.

      javac checks for ASCII digits, but only gives a warning if non-ASCII digits are found: given the JLS statement, it should give an error.
      ###@###.### 10/23/04 00:36 GMT
      ###@###.### 2005-1-26 07:03:37 GMT

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: