Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.6
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
# jirb
irb(main):001:0> JRUBY_VERSION
=> "1.1.6"
irb(main):001:0> "\222".unpack('m')
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -110
at org.jruby.util.Pack.unpack(Pack.java:902)
at org.jruby.RubyString.unpack(RubyString.java:3835)
org/jruby/util/Pack.java: problem is that safeGet() returns a signed byte, and uses that as index into b64_xtable.. negative index => ArrayIndexOutOfBoundsException
Can you try this on a nightly build? I think it may be fixed. http://jruby.headius.com:8080/hudson under jruby-dist.