Skip to content

Conversation

@olleolleolle
Copy link
Contributor

@olleolleolle olleolleolle commented Jan 10, 2024

This PR removes the code path for OldRegionAdapter, now that all published JRuby versions are using "new API" for Region, so no adapting is necessary.

Details

headius mentioned in an off-GitHub conversation:

Yeah we had a transition period where it supported both old and new
but now all released JRuby should be on the new version

(Using Region) should be fine, especially since 9.3 can't really install the gem (it will be ignored unless explicitly activated) and 9.4 has had the new region logic for several releases

TODO

  • Remove the Interface, and use Region as-is.
  • Remove the usage of the intermediate interface

This removes the code path for OldRegionAdapter.

headius mentioned in an off-GitHub conversation:
> Yeah we had a transition period where it supported both old and new
but now all released JRuby should be on the new version
@olleolleolle olleolleolle marked this pull request as ready for review January 12, 2024 19:57
@olleolleolle olleolleolle requested a review from headius January 12, 2024 19:57
@headius
Copy link
Contributor

headius commented Jan 13, 2024

Expanding my reply to @olleolleolle:

  • JRuby versions prior to JRuby 9.4 will not use the gem if it is not explicitly activated, since they bundled it as a non-gem part of stdlib.
  • JRuby 9.2 and earlier will break if this gem is upgraded and activated, but we believe there are few applications still using 9.2 that could not easily be upgraded to 9.3 or 9.4.
  • JRuby 9.3.11.0 and newer all ship with the updated joni logic and can support the gem without the legacy code.

I think this is fine to do. It's not a commonly upgraded gem, and even if it does get upgraded, JRuby has supported these APIs for several months.

@enebo Any concerns?

1 similar comment
@headius

This comment was marked as duplicate.

Copy link
Contributor

@headius headius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@headius headius merged commit c6804b7 into ruby:master Jan 14, 2024
@olleolleolle olleolleolle deleted the jruby-drop-old-joni-support branch January 14, 2024 14:06
@olleolleolle olleolleolle linked an issue Jan 15, 2024 that may be closed by this pull request
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.

CI is broken on latest JRuby

2 participants