[BUGFIX] Add spec hax for JRuby