[seam-issues] [JBoss JIRA] Commented: (SEAMINTL-33) Injections null when Bundles.get(String) is called

Nicklas Karlsson (JIRA) jira-events at lists.jboss.org
Thu Mar 24 03:04:45 EDT 2011


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

Nicklas Karlsson commented on SEAMINTL-33:
------------------------------------------

Win 7 64bit on a JDK 1.6.0_23 64bit with AS 6.0.0.Final

Observations:

* Bundles fails consistently on both hosts when using seam-international
* The issue is *not* reproducible in Weld trunk as a duplicated arquillian-test
* The issue *is* reproducible on a AS with updated Weld
* The issue smells like Weld but the case is so simple so it would have been picked up by now (and it worked in Weld arq-tests)

All in all, a very strange bug.

> Injections null when Bundles.get(String) is called
> --------------------------------------------------
>
>                 Key: SEAMINTL-33
>                 URL: https://issues.jboss.org/browse/SEAMINTL-33
>             Project: Seam International
>          Issue Type: Bug
>          Components: Messages
>    Affects Versions: 3.0.0.CR2
>            Reporter: Nicklas Karlsson
>            Assignee: Ken Finnigan
>         Attachments: arquillian.zip, passivation.zip
>
>
> Strange one. I'm trying to @Produce shorthands for my bundles so I have @Injected Bundles bundles but I get a NPE from my
>    @Produces
>    @Named
>    public ResourceBundle getMsg()
>    {
>       return bundles.get("default");
>    }
> The strange thing is that if I put breakpoints in Bundles.size() and Bundles.get(String), the injected Locale and ApplicationBundles are null for get(String) but non-null for the size() invocations!

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


More information about the seam-issues mailing list