bugGNU Octave - Bugs: bug #45118, isequal doesn't call overloaded...

 
 

bug #45118: isequal doesn't call overloaded isequal on struct fields

Submitted by:  Julien Bect <jbect>
Submitted on:  Sun 17 May 2015 07:09:48 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Mon 16 May 2016 08:41:32 AM UTC, comment #7:

The problem is solved in Octave 4.0.2:

This bug report can be closed.

Julien Bect <jbect>
Tue 26 Jan 2016 05:30:13 AM UTC, comment #6:

The patch for bug #44334 was applied. Can this bug report be closed now?

Lachlan Andrew <lachlan>
Project Member
Tue 16 Jun 2015 07:14:21 PM UTC, comment #5:

The patch submitted for bug #44334 solves this issue as well.

Julien Bect <jbect>
Tue 02 Jun 2015 04:51:45 PM UTC, comment #4:

Retagging release from 4.0.0-rc4 to 4.0.0.

John W. Eaton <jwe>
Project Administrator
Sun 17 May 2015 06:16:12 PM UTC, comment #3:

I have debugged into your described problem. The internal _isequal_ function is called recursive on the fields of the struct until it finds the @class objects to be compared, which use an overridden size method. Then it exits early, because the overridden size is different from the builtin size.

The cause of the error is the same as in bug #44334 and the patch submitted there should solve the issue.

Julien, please confirm whether the patch fixes the problem.

Oliver Heimlich <oheim>
Sun 17 May 2015 02:14:09 PM UTC, comment #2:

Not a duplicate, but perhaps related.

I haven't tried your patch yet.

Julien Bect <jbect>
Sun 17 May 2015 07:40:18 AM UTC, comment #1:

Duplicate or related to bug #44334 ? You can find a patch there, but nobody has reviewed it. Does the patch solve your problem?

Oliver Heimlich <oheim>
Sun 17 May 2015 07:09:48 AM UTC, original submission:

The title says it all: isequal doesn't call overloaded isequal on struct fields.

Here is an example.

Now, using a breakpoint in @stk_dataframe/isequal.m, I can confirm that the overload isequal is called in this case:

but not in this case:

Julien Bect <jbect>

 

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

Attach File(s):
   
   
Comment:
   

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 mtmiller (Updated the item)
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by oheim (Posted a comment)
  • -unavailable- added by jbect (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 May 2016 02:41:13 PM UTCmtmillerStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 02 Jun 2015 04:51:45 PM UTCjweRelease4.0.0-rc4=>4.0.0

    Back to the top


    Powered by Savane 3.1-cleanup1