[weld-issues] [JBoss JIRA] (WELD-588) RunnableDecorator incorrectly assumes >0 Runnable beans

Ales Justin (Commented) (JIRA) jira-events at lists.jboss.org
Mon Nov 14 07:03:40 EST 2011


    [ https://issues.jboss.org/browse/WELD-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642501#comment-12642501 ] 

Ales Justin commented on WELD-588:
----------------------------------

>> Demonstrates that without the decorator enabled, the unsatisfied dependency exception does not occur.

With this, I don't see this as an issue.
Can it be closed?

Unless someone can come up with non-enabled RunnableDecorator test still resulting in error.

                
> RunnableDecorator incorrectly assumes >0 Runnable beans
> -------------------------------------------------------
>
>                 Key: WELD-588
>                 URL: https://issues.jboss.org/browse/WELD-588
>             Project: Weld
>          Issue Type: Bug
>          Components: Java SE Support
>    Affects Versions: 1.0.1.Final
>         Environment: Java 6 + WeldSE
>            Reporter: Morten Christensen
>             Fix For: TBC
>
>         Attachments: TestRunnableDecorator.zip
>
>
> The class org.jboss.weld.environment.se.threading.RunnableDecorator incorrectly assumes that there will be at least one bean that implements Runnable.
> If there are no beans that implements Runnable then an error like this will happen:
> org.jboss.weld.DeploymentException: Injection point has unstatisfied dependencies. Injection point: field org.jboss.weld.environment.se.threading.RunnableDecorator.runnable; Qualifiers: [@javax.enterprise.inject.Default()]
> 	at org.jboss.weld.Validator.validateInjectionPoint(Validator.java:232)
> 	at org.jboss.weld.Validator.validateBean(Validator.java:80)
> 	at org.jboss.weld.Validator.validateRIBean(Validator.java:100)
> 	at org.jboss.weld.Validator.validateBeans(Validator.java:282)
> 	at org.jboss.weld.Validator.validateDeployment(Validator.java:267)
> 	at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:389)
> 	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:81)
> 	at org.jboss.weld.environment.se.StartMain.go(StartMain.java:45)
> 	at org.jboss.weld.environment.se.StartMain.main(StartMain.java:57)
> I guess the field "runnable" inside this class should be changed to use Instance<Runnable> instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list