RFR: 8295401: Error recovery in module-info.java could be improved

Vicente Romero vromero at openjdk.org
Mon Nov 28 17:21:29 UTC 2022


On Mon, 17 Oct 2022 14:19:05 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Consider an erroneous `module-info.java` like:
> 
> module m {
>     provides javax.util.;
> }
> 
> 
> When javac parses this code, the resulting AST will not contain the (incomplete) directive for provides. This is different from the other directives, which are included, and complicates developing features, like code completion, over the AST.
> 
> The proposal is to simply include the incomplete provides directive in the list of directives.

looks good

-------------

Marked as reviewed by vromero (Reviewer).

PR: https://git.openjdk.org/jdk/pull/10728


More information about the compiler-dev mailing list