java.util.List[range] is broken
-------------------------------

                 Key: JRUBY-3368
                 URL: http://jira.codehaus.org/browse/JRUBY-3368
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.6
            Reporter: Jan Berkel
         Attachments: array_sublist.patch

the range/slice operator which gets added to instances of java.util.List is 
broken:

{noformat}
>> l = Java::JavaUtil::ArrayList.new
=> #<Java::JavaUtil::ArrayList:0x6e15da @java_object=[]>
>> l.add(1); l.add(2); l.add(3) 
=> true
>> l[0..2]
=> #<#<Class:01x539fea:0x27dfb8 @java_object=[1, 2]>
>> l[0...2]
=> #<#<Class:01x539fea:0x315691 @java_object=[1, 2]>
{noformat}

fix + specs attached

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