[weld-issues] [JBoss JIRA] Commented: (WELD-910) Wrong example code - refering non-existent Weld#shutdown()

Ondrej Zizka (JIRA) jira-events at lists.jboss.org
Mon May 23 22:13:00 EDT 2011


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

Ondrej Zizka commented on WELD-910:
-----------------------------------

And, pls add a minimal MyApplicationBean to the example, just to have it complete.

> Wrong example code - refering non-existent Weld#shutdown()
> ----------------------------------------------------------
>
>                 Key: WELD-910
>                 URL: https://issues.jboss.org/browse/WELD-910
>             Project: Weld
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Ondrej Zizka
>
> http://docs.jboss.org/weld/reference/latest/en-US/html_single/#weld-se
> public static void main(String[] args) {
>    WeldContainer weld = new Weld().initialize();
>    weld.instance().select(MyApplicationBean.class).get();
>    weld.shutdown();
> }
> versus
> http://www.jarvana.com/jarvana/view/org/jboss/weld/weld-se/1.0.1-Final/weld-se-1.0.1-Final-javadoc.jar!/org/jboss/weld/environment/se/WeldContainer.html
> From which I conclude that the example's call to shutdown() is wrong.

--
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