Skip to content

Fix RubyString instances to raise FrozenError exceptions when mutations are attempted in debug mode…#5106

Merged
enebo merged 1 commit intojruby:ruby-2.5from
nomadium:fix-string-tests-with-frozen-error-related-failures
Mar 23, 2018
Merged

Fix RubyString instances to raise FrozenError exceptions when mutations are attempted in debug mode…#5106
enebo merged 1 commit intojruby:ruby-2.5from
nomadium:fix-string-tests-with-frozen-error-related-failures

Conversation

@nomadium
Copy link
Contributor

String instances were raising FrozenError exceptions as expected since Ruby 2.5, when modifications on frozen instances are attempted but the same was not happening in debug mode (they were raising RuntimeError, the expected behavior until 2.4).

This should fix a lot of failures in ruby-2.5 branch.

/cc: #4876

…ns are attempted in debug mode

It was working OK in normal mode but not in debug mode.
@enebo enebo added this to the JRuby 9.3.0.0 milestone Mar 23, 2018
@enebo enebo merged commit 5799d96 into jruby:ruby-2.5 Mar 23, 2018
@nomadium nomadium deleted the fix-string-tests-with-frozen-error-related-failures branch March 24, 2018 19:49
@enebo enebo modified the milestones: JRuby 9.3.0.0, JRuby 9.2.0.0 Apr 23, 2018
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.

2 participants