Integrated: 8261625: Add `Elements.isAutomaticModule(ModuleElement)`

Joe Darcy darcy at
Thu Apr 8 21:28:15 UTC 2021

On Wed, 7 Apr 2021 18:49:38 GMT, Joe Darcy <darcy at> wrote:

> Addition of a small convenience method, with a default implementation, to Elements.
> Most of the change is testing infrastructure. The negative cases, such as named modules, are tested in the style of other annotation processing tests for Elements utilities.
> An automatic module comes from a jar file, so an API reading from a jar file is needed. To avoid piping in the awkward plumbing needed to do that directly in the annotation processing tests, I updated an existing automatic modules test which uses the tool box facility. My additions to the tool box might not be the done in the most idiomatic style for that API; happy to have guidance on how to proceed better there.
> Assuming this general approach is agreed to, I'll update the imports on to condense the text of the annotation processor source.

This pull request has now been integrated.

Changeset: ccefa5e3
Author:    Joe Darcy <darcy at>
Stats:     194 lines in 5 files changed: 186 ins; 0 del; 8 mod

8261625: Add `Elements.isAutomaticModule(ModuleElement)`

Reviewed-by: vromero, jlahoda



More information about the compiler-dev mailing list