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

Error recovery in module-info.java could be improved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • tools
    • None
    • b26

      Consider code like:
      ---
      module m {
           provides com.
      }
      ---

      When this code is parsed, the AST will not contain the provides directive, due to not ideal error recovery. Note this is unlike to other directives, which are included even if they are not fully written.

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

              Created:
              Updated:
              Resolved: