Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixnum#to_s seems to generate strings immune to #[]= #1551

Closed
dennyabraham opened this issue Mar 7, 2014 · 1 comment
Closed

Fixnum#to_s seems to generate strings immune to #[]= #1551

dennyabraham opened this issue Mar 7, 2014 · 1 comment
Milestone

Comments

@dennyabraham
Copy link

@dennyabraham dennyabraham commented Mar 7, 2014

Test code

x = 100.to_s
x[0] = '2'
p x

MRI result

"200"

JRuby result

"100"

Tested against
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.5.0] and jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_12-ea-b08 +indy [darwin-x86_64]

see https://gist.github.com/dennyabraham/9400684

lucasallan added a commit that referenced this issue Apr 18, 2014
lucasallan added a commit that referenced this issue Apr 21, 2014
lucasallan added a commit that referenced this issue Apr 22, 2014
@lucasallan
Copy link
Member

@lucasallan lucasallan commented Apr 22, 2014

Fixed by 93bbb7d

@lucasallan lucasallan closed this Apr 22, 2014
@enebo enebo added this to the JRuby 1.7.13 milestone Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants