bugGNU Octave - Bugs: bug #43759, isequal throws warning when...

 
 

bug #43759: isequal throws warning when comparing classdef objects

Submitter:  sergey plotnikov <nul0m>
Submitted:  Fri 05 Dec 2014 04:16:32 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 11 Apr 2015 03:39:30 PM UTC, comment #1: 
Rik <rik5>
Group administrator
Fri 05 Dec 2014 04:16:32 PM UTC, original submission:  

i believe the warning Octave:classdef-to-struct should be temporarily turned off before comparing classdef objects in isequal. at least in ML it is not being shown. see my outputs from both Octave and Matlab.

test.m

classdef test

end


matlab

>> a = test;
>> isequal(a,a)

ans =

     1


octave

>> a = test;
>> isequal(a,a)
warning: struct: converting a classdef object into a struct overrides the access restrictions defined for properties. All properties are returned, in
cluding private and protected ones.
warning: called from
    __isequal__ at line 81 column 7
    isequal at line 31 column 10
warning: struct: converting a classdef object into a struct overrides the access restrictions defined for properties. All properties are returned, in
cluding private and protected ones.
ans =  1


sergey plotnikov <nul0m>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by nul0m (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 group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-11 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2015-03-20 jordigh Dependencies- Depends on bugs #44590
    2014-12-05 rik5 Carbon-CopyRemoved 72865 -
    2014-12-05 rik5 Summaryisequal throws warninng comparing classdef objects isequal throws warning when comparing classdef objects

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code