disable broken tests on net_4_0
[mcs.git] / class / corlib / System.Resources / ChangeLog
blob6027a5bd4fb4a3a95b01be66da85110f666e824c
1 2010-03-16  Jb Evain  <jbevain@novell.com>
3         * ResourceManager.cs: use MOONLIGHT symbol to disambiguate
4         MonoTouch and Moonlight code.
6 2010-03-01  Miguel de Icaza  <miguel@novell.com>
8         * Win32Resources.cs: Prevent infinite loops if the resource that
9         we are reading is invalid.   Fixes the mscorlib part of #327500
11 2009-11-01  Sebastien Pouliot  <sebastien@ximian.com>
13         * ResourceManager.cs (GetResourceFilePath): Don't use 
14         'resourceDir' which should always be null for Moonlight
16 2009-10-19  Jb Evain  <jbevain@novell.com>
18         * ResourceReader.cs: fix the build.
20 2009-10-18  Sebastien Pouliot  <sebastien@ximian.com>
22         * ResourceReader.cs, ResourceSet.cs, RuntimeResourceSet.cs: Use 
23         UnmanagedMemoryStream (instead of IntPtrStream)
25 2009-04-16  Geoff Norton  <gnorton@novell.com>
27         * ResourceWriter.cs: The magic internal type here is required to match
28         Microsofts for SL2 resource deserialization.
30 2009-03-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
32         * ResourceSet.cs: for custom resource sets without a reader, pretende
33         that's we've already read the stream.
35 2009-02-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
37         * ResourceSet.cs: populating the resource should be locked because the
38         resourceset could be shared.
40 2009-01-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
42         * ResourceManager.cs: don't throw every time we try to load a resource
43         satellite assembly that does not exist.
45 2008-12-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
47         * ResourceManager.cs: cache negative results too.
49 2008-12-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
51         * ResourceManager.cs: avoid duplication of keys if more than one
52         thread is creating the ResourceSet.
54 2008-12-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
56         * ResourceManager.cs: cache ResourceSets instead of loading them from
57         their assembly every time they are needed.
59 2008-08-11  Larry Ewing  <lewing@novell.com>
61         * ResourceReader.cs: fix reading/writing beyond the end of the
62         current resource when the resource is larger than 1024 bytes.
64 2008-06-30  Marek Safar  <marek.safar@gmail.com>
66         * ResourceReader.cs: Cache resources enumerator in ResourceReader.
68 2008-06-30  Marek Safar  <marek.safar@gmail.com>
70         * ResourceReader.cs: Sealed ResourceEnumerator.
72 2008-06-28  Rodrigo Kumpera  <rkumpera@novell.com>
74         * ResourceReader.cs (LoadResourceValues): Kill ununsed local.
76         * ResourceReader.cs (CreateResourceInfo): Don't return a big
77         struct on stack, pass it as a reference argument.
79 2008-06-27  Rodrigo Kumpera  <rkumpera@novell.com>
81         * ResourceReader.cs: Avoid an extra array copy for the resource arrays.
83 2008-06-27  Zoltan Varga  <vargaz@gmail.com>
85         * ResourceManager.cs: Add a negative cache for culture->resource set mappings
86         which caches lookup failures.
88         * ResourceSet.cs (GetObjectInternal): Search the hash table in the ignoreCase
89         case too.
91 2008-06-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
93         * MissingManifestResourceException.cs:
94         * MissingSatelliteAssemblyException.cs:
95         * ResourceManager.cs: Fix parameter names
97 2008-05-27  Marek Habersack  <mhabersack@novell.com>
99         * ResourceReader.cs: reimplement the way resources are read when
100         enumerator is used. The resource indexes and names are read in
101         ReadHeaders when ResourceReader is created and the resource values
102         are read and cached when the enumerator is created. This removed a
103         lot of unnecessary locking and made the whole process more
104         efficient and faster (a test application would acquire the locks
105         40000 times durng a 1.7s run, right now it acquires the lock 1
106         time).
108 2008-05-08  Miguel de Icaza  <miguel@novell.com>
110         * ResourceSet.cs: Pass the ignoreCase argument, needed to
111         implement ResourceManager.IgnoreCase.
113         Silverlight 2.0 applications store "page.xaml" as the key in the
114         resource keys, but request Page.xaml ones.
116         * ResourceManager.cs: Avoid exception throwing and catching.
118         * RutimeResourceSet.cs: Add a constructor that is required to
119         deserialize Silverlight 2.0 applications when deserializing the
120         resources that contains the XAML files in assemblies.
122         We do not take advantage of this new constructor that uses an
123         IntPtrStream, instead we stick to the Stream API.
125 2008-03-29  Gert Driesen  <drieseng@users.sourceforge.net>
127         * Win32Resources.cs: On 2.0 profile, initiale fixed info to zero-length
128         string when emitting versioninfo in compiler context. Default to
129         neutral language in compiler context. On 1.0 profile, use 0xffff as
130         default value for version parts. In Version, abort on first invalid
131         version part and also set FileVersion string. In ProductVersion and
132         FileVersion, parse version string and abort on first invalid version
133         part.  
135 2008-03-15  Gert Driesen  <drieseng@users.sourceforge.net>
137         * ResourceManager.cs: Default to RuntimeResourceSet for all ctors.
138         * ResourceSet.cs: Avoid duplicate argument checks. On 2.0 profile,
139         throw ObjectDisposedException when ResourceSet is disposed.
140         * RuntimeResourceSet.cs: On 2.0 profile, throw ObjectDisposedException
141         when ResourceSet is disposed.
143 2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>
145         * ResourceManager.cs: Use RuntimeResourceSet, an internal type, just
146         like MS does (and tell us indirectly with a Type property).
147         * ResourceSet.cs: Fix a few problems found with new unit tests. Also
148         fix some exception parameters.
149         * RuntimeResourceSet.cs: New. Internal type used by ResourceManager.
150         ResouceSet cannot be used, as is, because it does not clone objects,
151         when possible, leading to problems when those objects are disposed.
153 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
155         * ResourceWriter.cs: On 2.0 profile, do not mistakenly identify an
156         enum as a predefined type. Fixes bug #325223.
158 2007-11-10  Gert Driesen  <drieseng@users.sourceforge.net>
160         * ResourceWriter.cs: On 2.0 profile, use case-insensitive SortedList.
161         Changed exception messages and params to match MS. Allow null values
162         in AddResource overloads. In Dispose (bool), also generate resources
163         (header) if no resources were added. Fixes bug #339074. When Generate
164         is done, reset resources to null to prevent further editing.  This
165         also avoids the need for a separate bool to indicate whether generate
166         was already invoked. Code formatting.
168 2007-10-27  Gert Driesen  <drieseng@users.sourceforge.net>
170         * ResourceManager.cs: Removed temporary workaround for bug #43567.
171         Reworked basename to only throw ArgumentException if resource with
172         name ending on ".resources" does not actually exist. Fixes bug
173         #336283. Do not throw exception in GetStream since this is already
174         done in InternalGetResourceSet. In InternalGetResourceSet, do not
175         throw MissingManifestResourceException when culture is null. Fixed
176         MissingManifestResourceException message to match MS. When using
177         file-based ResourceManager, then also throw an exception when file
178         does not exist for neutral culture.
180 2007-09-17  Gert Driesen  <drieseng@users.sourceforge.net>
182         * ResourceManager.cs: Move code for determining manifest resource
183         name into separate method. Only use satellite assemblies for
184         non-invariant cultures. For invariant culture, only load resources
185         from main assembly.
187 2007-09-17  Gert Driesen  <drieseng@users.sourceforge.net>
189         * ResourceManager.cs: BaseName(Field) should return only the name.
190         Added resourceSource field to store the actual type, which we need for
191         the namespace. Added CheckBaseName method to avoid code duplication.
192         Only check whether basename does not end in '.resources' on 1.0
193         profile. Fixed paramname of ArgumentNullExceptions to match MS.
194         Modified GetManifestResourceStreamNoCase to use resourceSource field
195         to construct manifest resource name. Modified GetStream to use
196         CurrentUICulture when culture is null. Fixed InternalGetResourceSet
197         to use invariant resources when culture is the neutral culture.
198         Code formatting.
200 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
202         * ResourceReader.cs: Fixed exception message to match MS. Removed
203         duplicate checks from string ctor.
205 2007-08-09  Atsushi Enomoto  <atsushi@ximian.com>
207         * ResourceReader.cs : implemented GetResourceData(). Resources with
208           unresolvable types could still be parsed, so hold type names
209           instead of types.
211 2007-07-16  Rodrigo Kumpera  <rkumpera@novell.com>
213         * ResourceReader.cs (ResourceValue): Put the null resource check
214           before the resource version 2 check, this fixes bug #81757
216 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
218         * ResourceWriter.cs : fix for runtime serialization type index.
219           Fixed bug #81759.
221 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
223         * ResourceWriter.cs : temporarily disable 2.0 output until I get
224           bug #81759 fixed.
226 2007-05-28  Atsushi Enomoto  <atsushi@ximian.com>
228         * IResourceWriter.cs NeutralResourcesLanguageAttribute.cs
229           SatelliteContractVersionAttribute.cs ResourceManager.cs
230           IResourceReader.cs ResourceSet.cs ResourceWriter.cs
231           ResourceReader.cs UltimateResourceFallbackLocation.cs
232           MissingManifestResourceException.cs :
233           implemented 2.0 resource support (write, and remaining read bits)
234           and GetStream(). Cosmetic attributes fixes.
236 2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>
238         * MissingSatelliteAssemblyException.cs : new file.
240 2007-02-16  Gert Driesen  <drieseng@users.sourceforge.net>
242         * ResourceReader.cs: Fixed typo.
244 2006-12-30  Alexander Olk  <alex.olk@googlemail.com>
246         * ResourceManager.cs: Don't create the ResourceSets hashtable in the
247         protected ctor, instead move it to the public ctors. Fixes some not
248         working nunit tests. Also, return a closed ResourceSet instead of
249         creating a new one. Fixes one more test. If only BaseNameField is
250         provided, try to create a resource set from the BaseNameField. One
251         more test that passes now.
252         * ResourceSet.cs: Remove isDisposed. Not needed anymore.
254 2006-12-30  Alexander Olk  <alex.olk@googlemail.com>
256         * ResourceManager.cs: Iterate through the values of the ResourceSets
257         hashtable in ReleaseAllResources instead through the hashtable itself.
259 2006-12-30  Gert Driesen  <drieseng@users.sourceforge.net>
261         * ResourceReader.cs: Support reading byte arrays in v2 resource files.
262         Patch provided by Red Forks. Fixes bug #79976.
264 2006-10-29  Alexander Olk  <alex.olk@googlemail.com>
266         * ResourceSet.cs, ResourceManager.cs: Calling ResourceSet.Close()
267           disposes a resource set. A closed resource set will now be
268           removed from ResourceSets. Fixes bug #79182.
270 2006-03-14  Robert Jordan  <robertj@gmx.net>
272         * ResourceManager.cs: Don't stop the resource set lookup until
273         the invariant culture is reached. Fixes bug #77242.
275 2005-11-19  Zoltan Varga  <vargaz@gmail.com>
277         * Win32Resources.cs: Add a new 'FileVersion' property.
279 2005-07-25  Marek Safar  <marek.safar@seznam.cz>
281         *  ResourceReader.cs: Implemented reading of primitives for version 2.
283 2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>
285         *  ResourceReader.cs, ResourceSet.cs: Added a LinkDemand for 
286         SerializationFormatter when using a Stream constructor (other ctors
287         have different security - e.g. FileIOPermission for opening a file).
289 2005-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
291         * ResourceManager.cs: use culture.Equals in InternalGetResourceSet().
293 2005-02-12  Geoff Norton  <gnorton@customerdna.com>
295         * ResourceReader.cs: If a resource type index is -1 return null 
296         instead of throwing an exception
297         * ResourceWriter.cs: If an object is null; encode it with type index
298         -1 instead of throwing an exception.
299         
300 2005-02-11  Zoltan Varga  <vargaz@freemail.hu>
302         * Win32Resources.cs: Fix warning.
304 2004-12-06  Ben Maurer  <bmaurer@ximian.com>
306         * ResourceManager.cs (InternalResourceManager): on msft, they
307         search for a case-insenstitive match too here.
309 2004-05-02  Sebastien Pouliot  <sebastien@ximian.com>
311         * ResourceManager.cs: Avoid endless recursion when a resource file
312         isn't found.
314 2004-04-08  Lluis Sanchez <lluis@ximian.com>
316         * ResourceSet.cs: Added minor null check.
318 2004-02-03  Jackson Harper <jackson@ximian.com>
320         * ResourceSet.cs: Do not throw an exception for null strings.
321         
322 2004-01-13  Zoltan Varga  <vargaz@freemail.hu>
324         * Win32Resources.cs (Win32VersionInfoResource): Add more properties.
326 2004-01-09  Zoltan Varga  <vargaz@freemail.hu>
328         * Win32Resources.cs (Win32VersionInfoResource:WriteTo): Add padding
329         at the end of each string entry.
331         * Win32Resources.cs: Fix warnings not detected by mcs.
333 2004-01-08  Zoltan Varga  <vargaz@freemail.hu>
335         * Win32Resources.cs: Organize win32 resources into a class hierarchy
336         with the class Win32Resource as the abstract superclass. Add 
337         Win32ResFileReader and Win32IconFileReader classes and the 
338         corresponding resource types.
340         * Win32Resources.cs (Win32VersionInfoResource): Fix version number 
341         calculation. Add Language property.
343 2004-01-05  Zoltan Varga  <vargaz@freemail.hu>
345         * Win32Resources.cs: New file.
347         * Win32Resources.cs: The value of properties can't be empty.
349         * Win32Resources.cs: Add Win32ResourceType enumeration. Add accessors
350         for well-known property names. Add missing namespace declaration.
352 2003-12-17  Zoltan Varga  <vargaz@freemail.hu>
354         * ResourceWriter.cs (Stream): New internal property used by Ref.Emit.
356 2003-11-28  Dick Porter  <dick@ximian.com>
358         * ResourceSet.cs: Do string compares with the Invariant culture.
360 2003-11-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
362         * ResourceSet.cs: Implemented v1.1 updates
364 2003-09-07  Dick Porter  <dick@ximian.com>
366         * Temporary workaround for bug 43567, so that Npgsql at least
367         can run.
369 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
371         * ResourceManager.cs: fixed infinite loop when the resource is not
372         found. Also fixes bug #34196.
374 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
376         * ResourceManager.cs: enabled the code that calls GetSatelliteAssembly
377         and ignore the exception thrown if the assembly cannot be loaded.
379 2003-05-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
381         * ResourceManager.cs: fixed the name for the file when the culture is
382         not de invariant culture. Commented out the GetSatelliteAssembly code
383         to avoid NotImplementedException being thrown.
385 2002-08-19  Dick Porter  <dick@ximian.com>
387         * ResourceWriter.cs: Implemented all methods
389         * ResourceReader.cs: Cope with our ResourceSet class name, as well
390         as theirs
392 2002-08-18  Dick Porter  <dick@ximian.com>
394         * ResourceReader.cs: Finished basic implementation.  Some
395         optimisation in conjunction with ResourceSet still possible though
397 2002-08-14  Dick Porter  <dick@ximian.com>
399         * ResourceSet.cs: Throw the correct exceptions
401         * ResourceManager.cs: Implemented all unfinished methods
403 2002-03-12  Duncan Mak  <duncan@ximian.com>
405         * MissingManifestResourceException.cs: This should inherit from
406         SystemException, not Exception.
408 2002-01-26  Nick Drochak  <ndrochak@gol.com>
410         * ResourceReader.cs: Finsished reading resource files with just strings
411         in them.  Need to figure out other types, and also resources with
412         multiple types in the same file.
414 2002-01-24  Nick Drochak  <ndrochak@gol.com>
416         * ResourceReader.cs: Implemented constructors. Started on the 
417         GetEnumerator() method.  Not done yet, but comitting for 
418         'disaster recovery' purposes.
420 2002-01-19  Duncan Mak  <duncan@ximian.com>
422         * *.cs: Fixed indentation. There was a stupid bug in my .emacs file.
424 2002-1-17  Duncan Mak  <duncan@duncan@ximian.com>
426         * ResourceSet.cs: Implemented GetObject (string, bool) and GetString
427         (string, bool). ResourceSet has no more MonoTODOs! Also added in the
428         Serializable attribute.
429         
430         * *.cs: convert to Miguel's brace style.
432 2002-01-17  Duncan Mak  <duncan@ximian.com>
434         * ResourceManager.cs: Fixed GetNeutralResourcesLanguage () and added
435         new attributes documented in 1.0 SDK.
437 2002-01-17  Duncan Mak  <duncan@ximian.com>
439         * ResourceWriter.cs: Added MonoTODO decorations.
441         * SatelliteContractVersionAttribute.cs: added new attributes in 1.0 SDK.
443         * NeutralResoucesLanguageAttribute.cs: added new attributes in 1.0 SDK
444         
445 2002-01-16  Duncan Mak  <duncan@ximian.com>
447         * ResourceReader.cs: Fixed some typos.
449         * ResourceManager.cs: After reading the tutorial from the SDK,
450         finished all the ResourceManager constructors and removed those
451         MonoTODO tags.
452         
453         Removed MonoTODO from GetNeutralResourcesLanguage (Assembly)
454         because Miguel just implemented the whole class, including the
455         constructor that I needed (CultureInfo (string)).
457         Updated fields after reading the new docs from the final SDK.
459         * ResXFileRef.cs, ResXResourceReader.cs: Removed. They are part of
460         Windows.Forms and require System.Xml, which we don't have access to.
462 2002-01-13  Duncan Mak  <duncan@ximian.com>
464         * ResourceManager.cs: Added more MonoTODOs and cleaned up some 
465         indenting.
467 2002-01-09  Duncan Mak  <duncan@ximian.com>
469         * ResourceManager.cs: Fixed the GetSatelliteContractVersion()
470         method. It was missing a cast before. Removed MonoTODO
471         attribute. ;-) It was tested by John Barnette, so this shouldn't break
472         the build.
474         * ResourceManager.cs: Removed MonoTODO attribute on GetString
475         (string), as I believe it's correct. However, GetString
476         (string, CultureInfo) is definitely broken, so I'm marking it with
477         MonoTODO there. I also added MonoTODO to IntenalGetResourceSet().
479 2002-01-06  Duco Fijma <duco@lorentz.xs4all.nl>
480         * Finalizing IResourceReader and IResourceWriter interfaces: 
481           Added "new"-modifier to IResourceReader.GetEnumerator
482         * Fixed compilation issues in other *.cs, so that the 
483           System.Resources namespaces can be included in the corlib build.
485 2002-01-05  Ravi Pratap  <ravi@ximian.com>
487         * ResourceManager.cs : MonoTODO attribute decoration.
488         
489 Tue Dec 18 13:18:32 CET 2001 Paolo Molaro <lupus@ximian.com>
491         * *.cs: fixed some of the compilation issues: missing
492         using directives, typos.
494 2001-12-11  Duncan Mak  <duncan@ximian.com>
496         * Checked in to CVS.
498 2001-12-10  Duncan Mak  <duncan@ximian.com>
500         * ResourceManager.cs (GetNeutralResourcesLanguage):
501         (GetSatelliteContractVersion): Implemented.
502         
503 2001-12-09  Duncan Mak  <duncan@ximian.com>
505         * ResXResourceReader.cs: Initial attempt.
507         * ResXFileRef.cs: Initial attempt.
509         * ResourceWriter.cs: Initial attempt.
511         * ResourceSet.cs (ReadResources): Implemented, with help from Radek Doulik.
513 2001-11-28  Duncan Mak <duncan@ximian.com>      
515         * ResourceManager.cs: First attempt.
517 2001-11-27  Duncan Mak <duncan@ximian.com>
519         * ResourceSet.cs:
520         First attempt, can't continue until ResourceReader and ResourceWriter are implemented.
521                 
522         * SatelliteContractVersionAttribute.cs: First attempt. The spec is quite amibiguous here.
524         * NeutralResoucesLanguageAttribute.cs: Complete.
526         * MissingManifestResourceException.cs: Complete.
528         * IResourceReader.cs: Complete.
530         * IResourceWriter.cs: Complete.