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

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Dec 1 15:20:19 UTC 2022


This would be better discussed on the compiler-dev at openjdk.org mailing list

-- Jon

On 11/30/22 7:01 PM, Michał Kłeczek wrote:
> 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