|
Bugzilla – Bug 1142 |
eval("script", javascript) asks for downloading Javascript.jar when using Java 1.8 |
Last modified: 2015-08-17 09:42:48 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. |
| eval("script", javascript) asks for downloading Javascript.jar when using Jav... | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
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 :)