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

Jan Lahoda jlahoda at openjdk.org
Wed Nov 30 09:52:49 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.

This pull request has now been integrated.

Changeset: b52611bc
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b52611bc36d4fa7b62d1bb1618aa5185f75bf5d0
Stats:     83 lines in 2 files changed: 77 ins; 2 del; 4 mod

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

Reviewed-by: vromero

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

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


More information about the compiler-dev mailing list