[ImageJ-bugs] [Bug 921] Script editor attempts to parse @ in /* comments */ as parameters
bugzilla at fiji.sc
bugzilla at fiji.sc
Fri Aug 29 10:55:55 CDT 2014
http://fiji.sc/bugzilla/show_bug.cgi?id=921
Mark Hiner <hinerm at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hinerm at gmail.com
--- Comment #2 from Mark Hiner <hinerm at gmail.com> ---
See also: http://imagej.net/Script_parameters
Put any non @-prefixed line before your @author javadoc and the script should
work, as well.
The problem with trying to detect and avoid something like javadoc is that the
scripting framework allows aliasing of any class to a single keyword. So
"@author" could actually be a valid class alias.
We could at least reduce the chance for such misunderstandings by terminating
parameter parsing if we encounter a class with no alias.
see: https://github.com/scijava/scijava-common/issues/117
The relevant code is:
https://github.com/scijava/scijava-common/blob/master/src/main/java/org/scijava/script/ScriptInfo.java#L208-244
--
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/20140829/bc48c1ff/attachment.html>
More information about the Imagej-bugs
mailing list