|
Bugzilla – Bug 930 |
variable result containing an array gives an error |
Last modified: 2014-09-13 04:16:10 CDT |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
| variable result containing an array gives an error | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
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);