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

CDI portable extensions with missing dependencies in fields fail to deploy

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: