[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42710] fieldnames() fails for classnames in j

From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #42710] fieldnames() fails for classnames in java dynamic classpath
Date: Sun, 22 Feb 2015 19:42:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0

Update of bug #42710 (project octave):

                 Summary: fieldnames() fails for java classes in dynamic
classpath => fieldnames() fails for classnames in java dynamic classpath


Follow-up 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


$ wget
$ octave
octave-gui:1> javaaddpath ("./loci_tools.jar" );
octave-gui:2> r = javaObject ("loci.formats.in.ZipReader");
octave-gui:3> fieldnames (r) # this now works
ans = 
  [1,1] = MUST_GROUP
  [1,2] = CAN_GROUP
  [1,3] = CANNOT_GROUP
octave-gui:4> class (r)
ans = loci.formats.in.ZipReader
octave-gui:5> fieldnames (class (r)) # this continues to fail
error: [java] java.lang.ClassNotFoundException: loci.formats.in.ZipReader
error: called from
    fieldnames at line 57 column 15


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]