Consumers of ByteList.bytes field are not ByteList.begin aware
--------------------------------------------------------------

                 Key: JRUBY-1045
                 URL: http://jira.codehaus.org/browse/JRUBY-1045
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.0.0RC3


There are many places in the code where we access ByteList.bytes directly. Most 
of these places (outside of RubyString) do not correctly use ByteList.begin, 
instead using 0 as the starting index in all cases. This is incorrect, since 
the bytes array may have bytes in it before the actual beginning of relevant 
content. These places in the code should be updated to use ByteList.begin field.

See also JRUBY-1044, which is the same bug for JvYAMLb specifically.

-- 
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