Uploaded image for project: 'Seam International'
  1. Seam International
  2. SEAMINTL-33

Injections null when Bundles.get(String) is called

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 3.0.0.CR2
    • Fix Version/s: 3.0.0.Final
    • Component/s: Messages
    • Labels:
      None

      Description

      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!

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kenfinni Ken Finnigan
                  Reporter:
                  nickarls Nicklas Karlsson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: