Sorry to waste everyone's time, was a JRuby bug. Just found that it has 
been fixed in latest trunk.
-- 
Posted via http://www.ruby-forum.com/.