bugGNUstep - Bugs: bug #33289, NSMutableArray decoding fails

Group
 
 

bug #33289: NSMutableArray decoding fails

Submitter:  Thomas Davie <beelsebob>
Submitted:  Wed 11 May 2011 11:11:26 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 May 2011 08:33:02 AM UTC, comment #3: 

Thank you, now I understand the issue. I commit a fix for this to SVN, please give it a try and report back.

Fred Kiefer <FredKiefer>
Group Member
Thu 12 May 2011 08:10:30 AM UTC, comment #2: 

The something different is that I have an NSMutableArray – GSArray and NSArray support this decoding, NSMutableArray/GSMutableArray does not.

If/when GSMutableArray's initWithCoder: is called, decoding such objects fails.

Thomas Davie <beelsebob>
Thu 12 May 2011 07:28:46 AM UTC, comment #1: 

Could you please provide an example showing this behaviour?

The code in NSArray that does the keyed decoding already supports the case of elements being encoded in the @"NS.object.<objectNumber>" style. You either have a very old version of GNUstep or there is something special in your keyed archive or your loading code.

Fred Kiefer <FredKiefer>
Group Member
Wed 11 May 2011 11:11:26 AM UTC, original submission:  

Cocoa encodes NSMutableArrays using lots of keys of the form @"NS.object.<objectNumber>", when trying to decode such arrays with GNUstep, a GSMutableArray is created, and it attempts to decode an array using the key @"NS.objects".

Thomas Davie <beelsebob>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by beelsebob (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-03 FredKiefer StatusReady For Test Fixed
        Open/ClosedIn Test Closed
    2011-05-12 FredKiefer StatusNeed Info Ready For Test
        Assigned toNone FredKiefer
        Open/ClosedOpen In Test
    2011-05-12 FredKiefer StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code