You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have a Interface annotated with @repository and the interface is declared using generics types, the injection must succeed like in previous versions of the framework. This work in version 3.9.4
Actual Behaviour
In Micronaut 4.0.1, the injection fails with the error:
Failed to inject value for field [] of class: ...
Message: No bean of type [coop.tecso.AInterface<java.lang.String,java.lang.String>] exists. Make sure the bean is not disabled by bean requirements (enable trace logging for 'io.micronaut.context.condition' to check) and if the bean is enabled then ensure the class is declared a bean and annotation processing is enabled (for Java and Kotlin the 'micronaut-inject-java' dependency should be configured as an annotation processor).
Path Taken: InjectionTest.cacheString
io.micronaut.context.exceptions.DependencyInjectionException: Failed to inject value for field [cacheString] of class: coop.tecso.InjectionTest
Message: No bean of type [coop.tecso.AInterface<java.lang.String,java.lang.String>] exists. Make sure the bean is not disabled by bean requirements (enable trace logging for 'io.micronaut.context.condition' to check) and if the bean is enabled then ensure the class is declared a bean and annotation processing is enabled (for Java and Kotlin the 'micronaut-inject-java' dependency should be configured as an annotation processor).
Path Taken: InjectionTest.cacheString
Expected Behavior
When I have a Interface annotated with @repository and the interface is declared using generics types, the injection must succeed like in previous versions of the framework. This work in version 3.9.4
Actual Behaviour
In Micronaut 4.0.1, the injection fails with the error:
Steps To Reproduce
Environment Information
Manjaro Linux.
OpenJDK 17
Example Application
https://github.com/agustin-tecso/micronaut-error
Version
4.0.1
The text was updated successfully, but these errors were encountered: