bugGNUstep - Bugs: bug #16456, Unarchive NSArray containing...

Group
 
 

bug #16456: Unarchive NSArray containing several NSNull

Submitter:  pavel moravec <pavamora>
Submitted:  Fri 28 Apr 2006 06:42:30 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 28 Apr 2006 07:44:27 AM UTC, comment #1: 

Fixed in SVN ... thanks.

Richard Frith-Macdonald <CaS>
Group Member
Fri 28 Apr 2006 06:42:30 AM UTC, original submission:  

I'm using Mandrake 10.1 (i586) with gcc-3.4.1 and GNUstep gnustep-base-1.12.0

The following sequence does work:
id x=[NSMutableArray array];
[x addObject:@"a"];
[x addObject:[NSNull null]];
[x addObject:[NSNull null]];
[x addObject:@"b"];
NSLog(@"count %d content %@",[x count], x);
id y=[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver  archivedDataWithRootObject: x]];
NSLog(@"count %d content %@",[y count],y);

But the following sequence does not work:
id x=[NSMutableArray array];
[x addObject:@"a"];
[x addObject:[NSNull null]];
[x addObject:[NSNull null]];
[x addObject:@"b"];
NSLog(@"count %d content %@",[x count], x);
id y=[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver  archivedDataWithRootObject: x]];
NSLog(@"count %d content %@",[y count],y);



pavel moravec <pavamora>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-28 CaS StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code