bugGNU Octave - Bugs: bug #55870, methods() does not work on...

 
 

bug #55870: methods() does not work on built-in classes (e.g. meta classes)

Submitter:  Mike Miller <mtmiller>
Submitted:  Fri 08 Mar 2019 07:06:22 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
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
   

Mon 25 Mar 2019 09:09:23 PM UTC, comment #1: 

This seems to be working now (I'm on hg id aa50801747a9).

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Fri 08 Mar 2019 07:06:22 PM UTC, original submission:  

The 'methods' function should return a list of methods for class definitions that are built in to the interpreter:


>> methods ('meta.class')
error: [java] java.lang.ClassNotFoundException: meta.class
error: called from
    methods at line 49 column 16
>> m = ?inputParser;
>> methods (m)
Methods for class meta.class:



Both of these styles should return the list of methods for the 'meta.class' class. I can get this list in a roundabout way:


>> m = ?meta.class;
>> cellfun (@(x) x.Name, m.Methods, 'uniformoutput', false)
ans =
{
  [1,1] = delete
  [2,1] = eq
  [3,1] = fevalStatic
  [4,1] = fromName
  [5,1] = ge
  [6,1] = getConstant
  [7,1] = gt
  [8,1] = le
  [9,1] = lt
  [10,1] = ne
}


Mike Miller <mtmiller>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-25 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2019-03-08 mtmiller Carbon-CopyRemoved 80942 -

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code