bugGNU Octave - Bugs: bug #50689, fieldnames(...,full) broken.

 
 

bug #50689: fieldnames(...,full) broken.

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Fri 31 Mar 2017 12:26:32 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate 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
   

Fri 31 Mar 2017 03:30:48 PM UTC, comment #2: 

Yes, I made a mistake: i used it locally and it worked.
Could you be so kind and include my patch for bug #48740?

Ernst Reissner <ernstreissner>
Fri 31 Mar 2017 03:25:21 PM UTC, comment #1: 

I am not sure that ever worked. I cannot find a version of fieldnames in the repository that accepted two input arguments. (I might be wrong...)

Anyway, is this a duplicate of bug #48740 you reported a few months ago? The issues sound very similar to me.
You posted patches over there. Is it possible that it worked for you because you had applied these patches locally?

Closing tentatively as a duplicate of bug #48740.

Markus Mützel <mmuetzel>
Group administrator
Fri 31 Mar 2017 12:26:32 PM UTC, original submission:  

According to
https://www.mathworks.com/help/matlab/
ref/fieldnames.html?s_tid=gn_loc_drop

Syntax

names = fieldnames(s)
names = fieldnames(obj,'-full')
Description

names = fieldnames(s) returns a cell array of character vectors containing the names of the fields in structure s.

names = fieldnames(obj,'-full') returns a cell array of character vectors containing the name, type, attributes, and inheritance of the properties of obj. Only supported for COM or Java® objects.
names = fieldnames(s) returns a cell array of character vectors containing the names of the fields in structure s.

This worked in 4.1.0+ but now no longer.
I have the impression, that more than this has been changed
and that this is no good work.

I attached the new file and the old file.

Ernst Reissner <ernstreissner>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #40219:  fieldnames.m added by ernstreissner (4KiB - application/ecmascript)
file #40220:  fieldnames.m added by ernstreissner (3KiB - application/ecmascript)

 

Depends on the following items

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by ernstreissner (Submitted the item)
  • -email is unavailable- added by ernstreissner
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-31 mmuetzel StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #48740
    2017-03-31 ernstreissner Attached File- Added fieldnames.m, #40219
        Attached File- Added fieldnames.m, #40220
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code