bugGNU Octave - Bugs: bug #55768, display of classdef object should...


bug #55768: display of classdef object should not show private or protected properties

Submitted by:  Rik <rik5>
Submitted on:  Fri 22 Feb 2019 11:34:16 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  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.


Fri 22 Feb 2019 11:34:16 PM UTC, original submission:

When displaying a classdef object, all properties are printed including Hidden and Protected properties. This is not what Matlab does, nor is it what the properties() function does which is also confusing.

Consider the following classdef file in testprop.m (also attached):

Code to reproduce.

The fact that the properties() function shows hidden properties was separately reported at bug #55766.

In terms of architecture, the disp() function for class objects should probably not implement it's own logic. Instead it should probably call to the underlying function that implements properties() so that it stays in sync with fixes there and there is no code duplication.

Rik <rik5>
Project Administrator


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

Attach Files:

Attached Files
file #46336:  testprop.m added by rik5 (177B - text/x-matlab)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-22 rik5 Attached File- => Added testprop.m, #46336

    Back to the top

    Powered by Savane 3.4