Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.2
-
Fix Version/s: JRuby 1.3
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
There's a problem with shallowDup in ByteList:
$ jruby -rjava -e "import org.jruby.util.ByteList; b = ByteList.new(5); b.append('foo'.to_java_bytes); p b.length; p b.shallowDup.length"
3
5
This is the actual cause of the problem reported in JRUBY-3511.
I've committed a fix for this, but it needs a ByteList release.