[weld-issues] [JBoss JIRA] Created: (WELD-967) @ThreadScope documentation bug

Yonatan Graber (JIRA) jira-events at lists.jboss.org
Fri Sep 9 07:38:26 EDT 2011


@ThreadScope documentation bug
------------------------------

                 Key: WELD-967
                 URL: https://issues.jboss.org/browse/WELD-967
             Project: Weld
          Issue Type: Bug
          Components: Weld SPI
    Affects Versions: 1.1.2.Final
         Environment: Documentation
            Reporter: Yonatan Graber


In the @ThreadScope documentation (http://docs.jboss.org/weld/reference/1.1.0.Final/en-US/html_single/#d0e5455), it says you required to have the following added to beans.xml:
{code:xml} <beans>
  <decorators>
     <decorator>org.jboss.weld.environment.se.threading.RunnableDecorator</decorator>
  </decorator>
</beans>{code}
 
while it should be:
{code:xml} <beans>
  <decorators>
     <class>org.jboss.weld.environment.se.threading.RunnableDecorator</class>
  </decorator>
</beans>{code}

Simple error, but very confusing. Running with the wrong decorator declarations will cause the @ThreadScope not to work.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list