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

cryptic error message when source file contains hash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 7, 8
    • tools
    • None
    • b64
    • Verified

    Description

      The following program:

      class Test {
          Object o = #;
      }

      generates the following error:


      Test.java:983: error: illegal character: \35
          Object o = #;
                     ^
      1 error

      It would be nice if, instead of '\35' javac reported '#'.

      Attachments

        Activity

          People

            vromero Vicente Arturo Romero Zaldivar
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: