Skip to content

Conversation

@chadlwilson
Copy link
Contributor

@chadlwilson chadlwilson commented Aug 19, 2025

More cleanup for 1.3 of things we didn't end up removing for 1.2.

  • old JRuby compatibility code
  • some pre Rack 2.2 compatibility code
  • jruby-rack API deprecated ourselves.

See the History.md changes for more detail on the property/API changes.

https://github.com/jruby/jruby-rack/pull/318/files#diff-abfa5988643af1b8b2600aac13b273922dbb3372e021bf1d7caadfe7473c9561L9-R16

The subset of these which are pure removal of unnecessary code (not removing public APIs/props) I intend to backport/cherry-pick to 1.2-stable since they are equally applicable there. (basically the technical changes not needing documenting in the changelog/history)

@chadlwilson chadlwilson changed the title Tidy & drop remaining 1.0 and 1.1-era deprecations from API Tidy 1.0/1.1-era API deprecations; Rack < 2.2 code and JRuby < 9.3 code Aug 19, 2025
@chadlwilson chadlwilson changed the title Tidy 1.0/1.1-era API deprecations; Rack < 2.2 code and JRuby < 9.3 code Tidy 1.0/1.1-era API deprecations; Rack < 2.2 code JRuby < 9.3 code Aug 19, 2025
@chadlwilson chadlwilson marked this pull request as ready for review August 19, 2025 15:09
@chadlwilson chadlwilson force-pushed the tidy-deprecations branch 3 times, most recently from 4d092aa to f21c6c9 Compare August 21, 2025 09:54
@chadlwilson chadlwilson changed the title Tidy 1.0/1.1-era API deprecations; Rack < 2.2 code JRuby < 9.3 code Remove 1.0/1.1-era API deprecations; Rack < 2.2 code JRuby < 9.3 code Aug 21, 2025
@chadlwilson chadlwilson force-pushed the tidy-deprecations branch 3 times, most recently from a9f0fc2 to 1a472f1 Compare August 22, 2025 09:15
@chadlwilson
Copy link
Contributor Author

@kares do you have any thoughts about this collection of small clean-ups (in sequence of separate commits)?

The main thing left over I am not sure what to do with is the devlog / ServletLog usage, which I think was deprecated with the 1.2.x work which hung on master for quite a while, but not quite sure when can be removed.

- Removes logic for Ruby < 1.9
- Removes deprecated accept_html alias
- Remove backward compatibility support for Rack versions < 2.2
…ng ago by `jruby.runtime.env` and optional `jruby.runtime.env.rubyopt`
…fine rack.version

This is more forward compatible with Rack 3.x.
It's confusing here to test with a non-compatible version
catWithCodeRange will not work with JRuby < 9.4.7.0 (Apr 2024), but as this patch release is 18 months old, it's reasonable to expect patching.
@chadlwilson chadlwilson linked an issue Aug 23, 2025 that may be closed by this pull request
@chadlwilson
Copy link
Contributor Author

These are mainly not contentious since they were deprecated long ago, so will merge this in so I can avoid maintaining too many branches as I have a few things in flight, including a Rack 3.x experiment. I'll revert anything of concern or deal with devlog/servletlog later if necessary.

@chadlwilson chadlwilson merged commit a6433e9 into jruby:master Aug 24, 2025
41 checks passed
@chadlwilson chadlwilson deleted the tidy-deprecations branch August 24, 2025 07:33
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.

Eliminate use of deprecated methods from JRuby

1 participant