Incorrect parser error for compact source files and multi-variable declarations

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 26
    • Affects Version/s: 25, 26
    • Component/s: tools
    • None
    • master

      Consider:
      $ cat /tmp/A3.java
      int i, j;
      void main() {}
      $ javac /tmp/A3.java
      /tmp/A3.java:1: error: class, interface, annotation type, enum, record, method or field expected
      int i, j;
      ^
      1 error

            Assignee:
            Jan Lahoda
            Reporter:
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: