[ImageJ-bugs] [Bug 1142] eval("script", javascript) asks for downloading Javascript.jar when using Java 1.8
bugzilla at fiji.sc
bugzilla at fiji.sc
Mon Aug 17 09:37:30 CDT 2015
http://fiji.sc/bugzilla/show_bug.cgi?id=1142
Jan Eglinger <jan.eglinger at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |---
Severity|minor |enhancement
--- Comment #3 from Jan Eglinger <jan.eglinger at gmail.com> ---
While this might be intentional for ImageJ 1.x, I suggest that it be changed
for Fiji/ImageJ2:
- A local-only Javascript.jar will never be seen and updated by the
imagej-updater
- There's a fully functional Javascript engine provided by scijava scripting.
Introducing a second Javascript engine potentially leads to inconsistent
behaviour when running the same script from within the script editor, or from a
macro via `eval("script", "...")`.
- Input harvesting doesn't work with the supplied Javascript.jar. Running the
following code fails:
eval("script", "// @String name\n"
+ "// @OUTPUT String greeting\n"
+ "greeting = \"Hello, \" + name + \"!\";\n"
+ "");
showing the error:
ReferenceError: "name" is not defined. (line#3)
Re-opening this as "enhancement" then :)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20150817/32ade602/attachment.html>
More information about the Imagej-bugs
mailing list