ByteList.shallowDup does not propagate length correctly
-------------------------------------------------------

                 Key: JRUBY-3574
                 URL: http://jira.codehaus.org/browse/JRUBY-3574
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.2
            Reporter: Charles Oliver Nutter
            Priority: Blocker
             Fix For: JRuby 1.3


There's a problem with shallowDup in ByteList:

{noformat}
$ 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
{noformat}

This is the actual cause of the problem reported in JRUBY-3511.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to