jruby/jruby — pull request #1090 by Smarre (2013-10-07 13:51:08+00:00)
Title: Return if we can’t get proper native handle.

This avoids a ArrayIndexOutOfBoundsException in case we got invalid
native handle. The program will still die, but it will now instead
return

java.lang.RuntimeException: C extension initialized against invalid ruby
runtime

as error.

..

I found this while debugging cext things. I guess I should throw changes related to cext (I managed to allow it to load extensions, still haven’t tested whether it works) to jruby-cext instead of this repository(I’ll do it after I manage to convert commits to that repo; I did my work using cext in this repo, as I didn’t know of that new repo before starting to fiddle with this). If so, maybe you should remove cext files and instead have something like README.cext which points to new repository. The copy in jruby repo does not work anyway.

If you don’t want this check and just let it fail when if fails, I won’t get mad :)