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

Container checks dependencies of @Alternative beans even if they are not enabled.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.2.Final
    • 1.1.13.Final, 2.0.1.Final
    • None
    • None
    • Hide

      Run the attached Weld SE example.

      Show
      Run the attached Weld SE example.

    Description

      The container checks the dependencies of an @Alternative bean if it's not enabled. This may result in the following exception:

      Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [File] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public com.company.mavenproject2.FilePrinter(File)]
      	at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)
      	at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
      	at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)
      	at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)
      	at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)
      	at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)
      	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)
      	at org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap.validateBeans(ForwardingBootstrap.java:85)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:134)
      	at org.jboss.weld.environment.se.StartMain.go(StartMain.java:41)
      	at org.jboss.weld.environment.se.StartMain.main(StartMain.java:52)
      

      Attachments

        Activity

          People

            bafco Matus Abaffy (Inactive)
            christians_jira Christian Schlichtherle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: