-
Bug
-
Resolution: Done
-
Minor
-
2.1.0.Final
-
None
-
None
When trying to inject an existing object, not a CDI bean, BeanManager.createInjectionTarget can give all kinds of warnings about the class:
WELD-001519: An InjectionTarget is created for an abstract class Foo. It will not be possible to produce instances of this type!
WELD-001529: An InjectionTarget is created for a class Foo which does not have any appropriate constructor.
WELD-001533: An InjectionTarget is created for a non-static inner class Foo. It will not be possible to produce instances of this type!
These warnings are unavoidable, spamming the log with hundreds of warnings for all classes I need to create an InjectionTarget for. As long as I do not call produce on the targets, there is no problem. I think these level of these should be lowered, probably to debug, as you are only interested in these messages when debugging injection targets.