bugGNU Octave - Bugs: bug #44390, methods (object): Only displays...

 
 

bug #44390: methods (object): Only displays methods of subclass

Submitted by:  Oliver Heimlich <oheim>
Submitted on:  Sat 28 Feb 2015 09:32:26 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Oliver HeimlichOpen/Closed: Open
Release: 3.8.2Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 30 Mar 2015 03:43:13 PM UTC, comment #4:

jsh, I can't confirm that ‘methods’ is broken at the dev branch. It works for the (built-in) ftp class as well as other @class'es (old style classes).

I have not tested it against classdef.

Oliver Heimlich <oheim>
Mon 30 Mar 2015 03:36:28 PM UTC, comment #3:

I'm not sure that methods has been extended to classdef. I think you can file a different bug report about that. This bug is about displaying all methods when using the old style class syntax (@classname).

Rik <rik5>
Project Administrator
Mon 30 Mar 2015 11:05:24 AM UTC, comment #2:

There seems to be a few issues with the methods() function so I didn't open a new problem report but just reporting here.

For me in my latest build of the dev branch the methods function seems to completely broken. It doesn't work with either built-ins, classdef objects, or "string class names".

jsh <jsh>
Mon 02 Mar 2015 10:34:50 PM UTC, comment #1:

Confirmed. I changed the Item Group to "Matlab Compatibility". According to the documentation

So it is supposed to include superclasses.

Rik <rik5>
Project Administrator
Sat 28 Feb 2015 09:32:26 PM UTC, original submission:

Accoring to the documentation, methods (OBJ) should return “methods for the object OBJ”. When OBJ is an instance of class C and class C inherits class P, any methods from class P are ommitted in the output unless they are overriden in class C.

Expected result: methods (OBJ) returns a union of methods from classes C and P.

Example (use 3.8.2 or dev branch): With the interval package you can call “methods (infsupdec)”. The method “sup” from the base class infsup is missing. The overridden method “round” is present.

Either the result should be fixed or the documentation should clarify that methods (OBJ) actually returns methods from the class and not all methods for the object.

Oliver Heimlich <oheim>

 

(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 jsh (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by oheim (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 02 Mar 2015 10:34:50 PM UTCrik5Item GroupIncorrect Result=>Matlab Compatibility
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1