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

Symbol#to_s returns a frozen String #7481

Closed
postmodern opened this issue Nov 24, 2022 · 0 comments · Fixed by #7489
Closed

Symbol#to_s returns a frozen String #7481

postmodern opened this issue Nov 24, 2022 · 0 comments · Fixed by #7489
Milestone

Comments

@postmodern
Copy link

Symbol#to_s returns a frozen String on JRuby 9.4, but under CRuby 3.1 it returns a new unfrozen String.

sym = :foo
str = sym.to_s
str.frozen?

Environment Information

  • jruby 9.4.0.0 (3.1.0) 2022-11-23 95c0ec159f OpenJDK 64-Bit Server VM 17.0.5+8 on 17.0.5+8 +jit [x86_64-linux]

Expected Behavior

# => false

Actual Behavior

# => true
@headius headius added this to the JRuby 9.4.1.0 milestone Nov 24, 2022
mshibuya added a commit to railsadminteam/rails_admin that referenced this issue Nov 26, 2022
mshibuya added a commit to railsadminteam/rails_admin that referenced this issue Nov 26, 2022
pcai pushed a commit to pcai/rails_admin that referenced this issue Nov 26, 2022
flavorjones added a commit to sparklemotion/mechanize that referenced this issue Feb 7, 2023
flavorjones added a commit to sparklemotion/mechanize that referenced this issue Feb 7, 2023
flavorjones added a commit to sparklemotion/mechanize that referenced this issue Mar 5, 2023
flavorjones added a commit to sparklemotion/mechanize that referenced this issue Mar 5, 2023
flavorjones added a commit to sparklemotion/mechanize that referenced this issue Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants