bugGNUstep - Bugs: bug #33289, NSMutableArray decoding fails

 
 

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

bug #33289: NSMutableArray decoding fails

Submitted by:  Thomas Davie <beelsebob>
Submitted on:  Wed 11 May 2011 11:11:26 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Oct 2011 08:40:14 PM UTCFredKieferStatusReady For Test=>Fixed
      Open/ClosedIn Test=>Closed
    Thu 12 May 2011 08:33:02 AM UTCFredKieferStatusNeed Info=>Ready For Test
      Assigned toNone=>FredKiefer
      Open/ClosedOpen=>In Test
    Thu 12 May 2011 07:28:46 AM UTCFredKieferStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1