bugGNU Octave - Bugs: bug #47241, classdef: assigning property of...

 
 

bug #47241: classdef: assigning property of handle object in object array constructs new object

Submitted by:  None
Submitted on:  Tue 23 Feb 2016 11:40:10 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Philip RothOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 29 Mar 2017 06:32:51 PM UTC, comment #1:

I can confirm. I see the following after your test:

So indexing is off by one.
Might be related to bug #46660 which seems to also have a patch for this.

Markus Mützel <mmuetzel>
Project Member
Tue 23 Feb 2016 11:40:10 PM UTC, original submission:

With a simple handle object:

Then create an array of objects, assign a value to one property, then the other, and the value assigned to the first property is reset (apparently because a new object was constructed and copied into that array element).

Expected behavior is that b(1).x is 1, and b(1).y is 2 after the operations complete. Same behavior observed with both Octave 4.0 and Octave 4.1 installed via MacPorts.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mmuetzel (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by None (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 project members can vote.

     

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Mar 2017 06:32:51 PM UTCmmuetzelDependencies-=>Depends on bugs #46660
    Thu 02 Jun 2016 03:59:19 AM UTCmtmillerStatusNone=>Confirmed
      Release4.0.0=>dev
      Operating SystemMac OS=>Any
      SummaryAssigning property of handle object in object array constructs new object=>classdef: assigning property of handle object in object array constructs new object

    Back to the top


    Powered by Savane 3.1-cleanup1