Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jruby] avoid Thread#to_java internals #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kares
Copy link

@kares kares commented Jan 9, 2023

the first commit replaces the internals with another piece (which is future proof on JRuby)

the seconds removes the hacks to just rely on what source_location already provides
(the only downside I can think of is that this would break 1.8 mode for long dead JRuby 1.7.x)

kares added 2 commits January 9, 2023 18:51
JRuby.runtime.current_context is more future proof
the Method/UnboundMethod#source_location replacements on JRuby made no
sense - they simply delegated to what was already available.

this might date back to JRuby 1.7 where these hacks would provide
source_location for Ruby 1.8(.7) mode
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