[ImageJ-bugs] [Bug 776] jruby integration is broken

bugzilla at fiji.sc bugzilla at fiji.sc
Wed Aug 27 13:34:27 CDT 2014


http://fiji.sc/bugzilla/show_bug.cgi?id=776

Mark Hiner <hinerm at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #14 from Mark Hiner <hinerm at gmail.com> ---
We added a flexible method for adding headers to scripts based on language (see
https://github.com/scijava/scijava-common/pull/116).

This way, there is no magical behind-the-scenes importing: appropriate import
statements get added to the top of new files (at the least, as in the case with
JRuby, they will point to the file where the imports are declared - imagej.rb
for example).

For now, I only added a Ruby header, which requires imagej.rb, which now
declares several ij package and subpackage imports.

Note that in JRuby, each import has to be explicitly declared - the package.*
notation is not respected. There is a cost to importing additional files, so I
just auto-imported what I thought would be useful (ij.IJ, ImagePlus, and such).
If I missed anything please let me know.

This is live in the current Fiji.

-- 
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/20140827/8b07d8f4/attachment.html>


More information about the Imagej-bugs mailing list