[weld-issues] [JBoss JIRA] Created: (WELD-457) 4.11. The InjectionPoint object example is non-functional

Matthieu Chase Heimer (JIRA) jira-events at lists.jboss.org
Tue Mar 2 23:57:10 EST 2010


4.11. The InjectionPoint object example is non-functional
---------------------------------------------------------

                 Key: WELD-457
                 URL: https://jira.jboss.org/jira/browse/WELD-457
             Project: Weld
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 1.0.1.Final
            Reporter: Matthieu Chase Heimer


http://docs.jboss.org/weld/reference/1.0.1-Final/en-US/html_single/index.html#d0e1622

There are 3 code blocks dealing with an HTTP param example (after the logger example)

In the first block @BindingType should be @Qualifier

In the second block each line should start with @Inject

In the third example the producer method uses parameter injection to get a ServletRequest object. ServletRequest is not a valid object to inject which kind of kills the whole example. In fact the note under section "15.1. Built-in beans" says that it may not work and even if it did it would be a bad idea.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list