bugDotGNU Portable.NET - Bugs: bug #9366, ResourceManager: fall back on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9366: ResourceManager: fall back on neutral resources failed

Submitter:  Erik Pfeifle <kirep>
Submitted:  Thu 17 Jun 2004 11:11:51 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 18 Jun 2004 04:04:01 PM UTC, comment #1: 

Fixed in CVS on 18th June 2004

Gopal.V <t3rmin4t0r>
Group administrator
Thu 17 Jun 2004 11:11:51 AM UTC, original submission:  

Fall back on neutral culture's resources, which are located in the main assembly, fails in pnet 0.6.6.

test sample:
There 3 resources (Text1, Text2 and Bool) wihich values are located in the main assembly. Only the Text1 resource has a different value located in the de-DE satellite assembly.
CultureInfo is set to de-DE.

With MS.NET the program gets the resource values for Text2 and Bool from the main assembly.
see attached console output in TestResource.txt

With pnet the fall back on neutral resource values of the main assembly fails.
The method GetString(..) returns an empty string if the the specified resource is not in the satellite assembly.
The method GetObject(..) throws a null pointer exception if the the specified resource is not in the satellite assembly.

console output with pnet:
Resource Manager>>GetString(Text1): Hallo (Satellite Assembly)
Resource Manager>>GetString(Text2):
Uncaught exception: System.NullReferenceException: The value 'null' was found where an instance of an object was required at TestResource.Class1.Main(String[])

Erik Pfeifle <kirep>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1417:  TestResource.zip added by kirep (20KiB - application/x-zip-compressed - source file, executable, de-DE satellite assembly, console output of win32)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-18 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-06-17 kirep Attached File- Added TestResource.zip, #1409

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code