I'm just getting started with Micronaut and one thing I was surprised to discover is that despite the annotation processors, there does not appear to be any warnings to indicate when there is a dependency injection problem. For Example, when I have an @Inject
for an interface with 2 concrete implementations. I was expecting my IDE to provide a compiler warning on the inject annotation telling me that there are 2 possible bindings and I would need to provide a @Named
annotation to disambiguate.
Is my expectation incorrect and binding problems are still only revealed at runtime, or have I not configured my IDE correctly to properly inform me of these DI errors using Micronaut?
Java version: 8
IDE: IntelliJ IDEA Ultimate
Micronaut Version: 1.1.1
Build Tool: maven