JRuby compatibility