[corlib] Fix localized resource loading bug (#14987)
authorStephen McConnel <stephen_mcconnel@sil.org>
Wed, 25 Sep 2013 17:23:03 +0000 (12:23 -0500)
committerEberhard Beilharz <eb1@sil.org>
Fri, 14 Mar 2014 16:24:46 +0000 (17:24 +0100)
We shouldn't share non-existent resources between resource
managers since different resources can have different localizations.

mcs/class/corlib/System.Resources/ResourceManager.cs

index cd321d2dd91ca63bc2c37f5960c7720ed09650fc..961f8679819ed2c4c0368b9e26c2803bd0e5651c 100644 (file)
@@ -45,8 +45,8 @@ namespace System.Resources
        public class ResourceManager
        {
                static readonly object thisLock = new object ();
-               static readonly Hashtable ResourceCache = new Hashtable (); 
-               static readonly Hashtable NonExistent = Hashtable.Synchronized (new Hashtable ());
+               static readonly Hashtable ResourceCache = new Hashtable ();
+               readonly Hashtable NonExistent = new Hashtable ();
                public static readonly int HeaderVersionNumber = 1;
                public static readonly int MagicNumber = unchecked ((int) 0xBEEFCACE);