Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1547

Unavoidable warnings in log when injecting unmanaged objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.1.1.Final, 2.2.0.Alpha1
    • 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.

              bafco Matus Abaffy (Inactive)
              papegaaij Emond Papegaaij
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: