avaje / avaje-inject

Dependency injection via APT (source code generation) ala "Server-Side Dagger DI"
https://avaje.io/inject
Apache License 2.0
227 stars 21 forks source link

Fix for unnamed generic types returned by @Factory @Bean #589

Closed rob-bygrave closed 3 months ago

rob-bygrave commented 3 months ago

As currently the full generic type is not used in the generated build method name but just the top level main type then the generated build method can clash resulting in a compile error.

This fix detects this case and includes the factory method name in the "generated build method" such that it avoids the clash.