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

CDI portable extensions with missing dependencies in fields fail to deploy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None

      The following CDI extension fails to deploy if Foo is not on classpath:

      public class BrokenExtension implements Extension {
          private Foo foo;
      }
      

      However, if the missing dependency is not a field but a parent class as in the following, the extension is disregarded by the container, but the archive deploys successfully:

      public class BrokenExtension extends Foo implements Extension {
      }
      

      It would be more consistent if the behaviour from the second case applied in both cases.

              mkouba@redhat.com Martin Kouba
              rsmeral Ron Šmeral (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: