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

Michał Kłeczek michal at kleczek.org
Thu Dec 1 08:24:07 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20221201/54f0c693/attachment-0001.htm>


More information about the compiler-dev mailing list