eclipse-vertx / vertx-codegen

Vert.x code generator for asynchronous polyglot APIs
Apache License 2.0
105 stars 92 forks source link

Let the processor tolerate generator service loading failures #384

Closed vietj closed 4 months ago

vietj commented 4 months ago

The processor generator loader will fail when a generator is declared but cannot be class loaded, e.g. compiling a generator which contains processor annotations (e.g. @VertxGen) fails when the generator is declared as a service in META-INF. While this is actually correct, we should tolerate this situation and continue generator loading with a warn in order to allow this case for code generators.

Modify the generator loading of the processor to use plain iteration instead of java streams and catch service configuration errors to continue loading of other generators and not failing the current processor.