bugGNU Octave - Bugs: bug #42710, fieldnames() fails for classnames...


bug #42710: fieldnames() fails for classnames in java dynamic classpath

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Tue 08 Jul 2014 06:23:35 PM UTC  
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Mon 06 Apr 2015 07:51:50 PM UTC, comment #3:

Reopening the bug, as the bug is still present.

This bug only affects classes on the java dynamic classpath.

Carnë Draug <carandraug>
Project Member
Mon 06 Apr 2015 02:40:22 PM UTC, comment #2:

Not sure when but this seems to already been fixed. Removed the FIXME comment http://hg.savannah.gnu.org/hgweb/octave/rev/68aec55f5eb6 and closing the bug report

Carnë Draug <carandraug>
Project Member
Sun 22 Feb 2015 07:42:42 PM UTC, comment #1:

I pushed this http://hg.savannah.gnu.org/hgweb/octave/rev/b2c4f869ff7c

which will fix the original bug. While fixing this, I noticed that it will still fails if a classname from the dynamic classpath is used (I think this is an Octave only feature, Matlab seems to not accept strings as input for fieldnames).


Carnë Draug <carandraug>
Project Member
Tue 08 Jul 2014 06:23:35 PM UTC, original submission:

The function javafields() is currently deprecated and fieldnames() is recommended instead. However, fieldnames() fails for classes that are on the dynamic classpath instead of static path, while javafields() is working fine for both cases.

The following is using loci_tools.jar which can be downloaded from http://downloads.openmicroscopy.org/bio-formats/5.0.2/artifacts/loci_tools.jar just for the sake of an example:

Carnë Draug <carandraug>
Project Member


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

Attach File(s):

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 mtmiller (Updated the item)
  • -unavailable- added by carandraug (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 06 Apr 2015 07:51:50 PM UTCcarandraugStatusFixed=>Confirmed
    Mon 06 Apr 2015 02:40:22 PM UTCcarandraugStatusNone=>Fixed
    Sun 22 Feb 2015 07:42:42 PM UTCcarandraugSummaryfieldnames() fails for java classes in dynamic classpath=>fieldnames() fails for classnames in java dynamic classpath
    Sun 22 Feb 2015 06:51:44 PM UTCmtmillerCategoryNone=>Libraries
      Item GroupNone=>Incorrect Result

    Back to the top

    Powered by Savane 3.1-cleanup