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

Error recovery in module-info.java could be improved

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: