Skip to content

Update some warnings to deprecated#8071

Merged
headius merged 2 commits intojruby:masterfrom
headius:deprecated_things
Jan 20, 2024
Merged

Update some warnings to deprecated#8071
headius merged 2 commits intojruby:masterfrom
headius:deprecated_things

Conversation

@headius
Copy link
Member

@headius headius commented Jan 19, 2024

This also marks syscall as not implemented (warns of pending deletion in CRuby) and modifies all RubyWarnings.warning* forms to no-op on verbose, as they used to (unsure when this changed).

@headius headius added this to the JRuby 9.4.6.0 milestone Jan 19, 2024
@headius
Copy link
Member Author

headius commented Jan 19, 2024

See ruby/ruby#3917 for the same changes in CRuby.

This also marks syscall as not implemented (warns of pending
deletion in CRuby) and modifies all RubyWarnings.warning* forms to
no-op on verbose, as they used to (unsure when this changed).
@headius
Copy link
Member Author

headius commented Jan 19, 2024

Changing warning() to only fire in verbose mode exposed several places where we call warning() instead of warn() as in CRuby. I'll fix those cases as well.

warning at some point started to warn all the time, even when not
verbose. Previous commit modified this logic to match CRuby, with
warning only producing output in verbose mode, but several specs
and tests failed that expected that output. These cases should be
warn, as in CRuby.
@headius headius merged commit e43e3b5 into jruby:master Jan 20, 2024
@headius headius deleted the deprecated_things branch January 20, 2024 00:03
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