jruby/jruby — pull request #1626 by dmarcotte (2014-04-12 23:28:33+00:00)
Title: Fix compare_to for to_java'ed Ruby objects

Flip incorrect nil check which was resulting in #compare_to always returning 0 for many to_java'ed Ruby objects (anything not internally represented by a class which overrides RubyBasicObject#compareTo)

Fixes #1520