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

Submitted by:  Erik Pfeifle <kirep>
Submitted on:  Thu 17 Jun 2004 11:11:51 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 18 Jun 2004 04:04:01 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 17 Jun 2004 11:11:51 AM UTCkirepAttached File-=>Added TestResource.zip, #1409

Back to the top


Powered by Savane 3.1-cleanup1