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

Unavoidable warnings in log when injecting unmanaged objects

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.1.0.Final
    • Fix Version/s: 2.1.1.Final, 2.2.0.Alpha1
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bafco Matus Abaffy
                Reporter:
                papegaaij Emond Papegaaij
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: