TextProvider.class should not be registered as a Singleton
----------------------------------------------------------

                 Key: WW-2226
                 URL: https://issues.apache.org/struts/browse/WW-2226
             Project: Struts 2
          Issue Type: Bug
          Components: API, Configuration
    Affects Versions: 2.0.9
            Reporter: Darren Shepherd


TextProvider.class should be not registered in the Container as a Singleton.  
If the TextProvider impl is an instanceof ResourceBundleTextProvider, the 
TextProviderFactory will call setClazz, and setLocaleProvider on the impl.  
This is not thread safe.  This is related an xwork bug I filed, XW-572.  In 
general, the TextProvider never gets properly injected, so this issue is most 
likely not prevalent.  It does seem to effect I18N component, which does the 
injection itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to