Uses directive not visible in annotation processor when provider class not existing (yet)

Michał Kłeczek michal at kleczek.org
Thu Dec 1 03:01:26 UTC 2022


Hi,

I am implementing an annotation processor that (among other things) is supposed to generate service provider classes that delegate calls to beans from a Spring application context.

The idea is to mark a module in module-info with an annotation and add “provides Service with Implementation” where Implementation is not existent (yet).
Unfortunately it seems ModuleElement.getDirectives() does not return such a provides directive.

Is it a bug or I am missing something?

Thanks,
Michal


More information about the discuss mailing list