History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1507
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Thomas E Enebo
Reporter: Charles Oliver Nutter
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

Ruby String aset ([]=) with 3 args does not work is start index is one past string length

Created: 02/Nov/07 02:40 PM   Updated: 22/Dec/07 06:26 AM
Component/s: Core Classes/Modules
Affects Version/s: JRuby 1.1b1, JRuby 1.0.2
Fix Version/s: JRuby 1.0.3, JRuby 1.1RC2

Time Tracking:
Not Specified


 Description  « Hide
Issue originally found in Rope unit tests (only error found in Rope 0.1).

This code snippet shows the problem:

s = "0"
s[1, 1] = "1"
p s

This should show s as "01" not throw Index out of bounds error.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thomas E Enebo - 10/Nov/07 03:18 PM
Fixed in commit 4906 on trunk and commit 4907 on 1.0 branch