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

Injections null when Bundles.get(String) is called

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate Issue
    • 3.0.0.CR2
    • 3.0.0.Final
    • Messages
    • 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!

      Attachments

        Issue Links

          Activity

            People

              kfinniga@redhat.com Ken Finnigan (Inactive)
              nickarls Nicklas Karlsson (Inactive)
              Archiver:
              ranumula@redhat.com Raju Anumula

              Dates

                Created:
                Updated:
                Resolved:
                Archived: