cryptic error message when source file contains hash

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7, 8
    • Component/s: tools
    • None
    • b64
    • Verified

      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 '#'.

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

              Created:
              Updated:
              Resolved: