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:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


Thu 11 Aug 2016 02:21:48 PM UTC, comment #5:

in file scripts/general/fieldnames.m
I removed a superfluous branch.

(file #38177)

Ernst Reissner <ernstreissner>
Thu 21 Jul 2016 10:29:43 PM UTC, comment #4:

not only fieldnames but also methods has the same problem:
error: [java] java.lang.ClassNotFoundException: eu.simuline.octave.OctaveInterfaceTester

with my class eu.simuline.octave.OctaveInterfaceTester
on the dynamic classpath.

Ernst Reissner <ernstreissner>
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 Files:

Attached Files
file #38177:  patchBug42710.patch added by ernstreissner (3KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ernstreissner (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by carandraug (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.




    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-11 ernstreissner Attached File- => Added patchBug42710.patch, #38177
    2015-04-06 carandraug StatusFixed => Confirmed
        Open/ClosedClosed => Open
    2015-04-06 carandraug StatusNone => Fixed
        Open/ClosedOpen => Closed
    2015-02-22 carandraug Summaryfieldnames() fails for java classes in dynamic classpath => fieldnames() fails for classnames in java dynamic classpath
    2015-02-22 mtmiller CategoryNone => Libraries
        Item GroupNone => Incorrect Result

    Back to the top

    Powered by Savane 3.3