Skip to content

Avoid JRuby chilled strings warnings - #22

Open
briangadoury wants to merge 3 commits into
mxenabled:masterfrom
briangadoury:jruby-10-warnings-fix
Open

Avoid JRuby chilled strings warnings#22
briangadoury wants to merge 3 commits into
mxenabled:masterfrom
briangadoury:jruby-10-warnings-fix

Conversation

@briangadoury

@briangadoury briangadoury commented Aug 25, 2026

Copy link
Copy Markdown

Use String.new for mutated strings to prevent chilled strings warning. These warnings add a mountain of noise to rspec output. Here's an example:

/Users/brian.gadoury/.rbenv/versions/jruby-10.0.6.0/lib/ruby/gems/shared/gems/active_remote-cached-1.1.1/lib/active_remote/cached.rb:296: warning: literal string will be frozen in the future, the string was created here: /Users/brian.gadoury/.rbenv/versions/jruby-10.0.6.0/lib/ruby/gems/shared/gems/active_remote-cached-1.1.1/lib/active_remote/cached.rb:295

Here's the vibe when running rspec:
Screenshot 2026-08-26 at 3 34 11 PM

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 this pull request may close these issues.

1 participant