[ImageJ-bugs] [Bug 930] variable result containing an array gives an error
bugzilla at fiji.sc
bugzilla at fiji.sc
Fri Sep 12 10:24:30 CDT 2014
http://fiji.sc/bugzilla/show_bug.cgi?id=930
Mark Hiner <hinerm at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CONFIRMED
CC| |hinerm at gmail.com
--- Comment #1 from Mark Hiner <hinerm at gmail.com> ---
Confirmed. The error message is:
'[' or '.' expected
This comes from IJ1 helper passing the macro:
result = -17974594
result = newArray(3);call("net.imagej.legacy.plugin.IJ1MacroEngine.setOutput",
"result", result);
to IJ.runMacro, which errors out when attempting to look up the value of the
result variable here:
https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/macro/Interpreter.java#L1629-1648
Looks like it's wants to evaluate an index of the array instead of just
returning the array itself.
Note that storing the array into a different variable name seems to be fine (no
exception at least). e.g.:
test = newArray(3);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20140912/951a6d70/attachment.html>
More information about the Imagej-bugs
mailing list