Skip to content

[refactor] make Java embed utils generic#7503

Merged
kares merged 5 commits intojruby:masterfrom
kares:fix-jembed-utils
Feb 6, 2023
Merged

[refactor] make Java embed utils generic#7503
kares merged 5 commits intojruby:masterfrom
kares:fix-jembed-utils

Conversation

@kares
Copy link
Member

@kares kares commented Dec 1, 2022

the main thing is to fix an issue with java_alias that did not work with interfaces (included test errors with a ClassCastException using JRuby 9.3.9.0).

ended up in a code base that uses JavaEmbedUtils's invokeMethod and rubyToJava, and require and extra cast which seemed like a missed opportunity 😉

@kares
Copy link
Member Author

kares commented Dec 1, 2022

hmm, wonder if I should target 9.3 branch, the iface fix would be nice to have there but still isn't super crucial ...

@headius
Copy link
Member

headius commented Dec 7, 2022

JRuby 9.3 will be maintained for the next year, so if you think this is valuable to have there we should retarget.

@kares
Copy link
Member Author

kares commented Dec 12, 2022

yeah, already did cherry-pick the fix commit for 9.3: #7514 (for the refactorings I have no strong opinions)

@kares kares changed the title [fix] java_alias for interface + make embed utils generic [refactor] make Java embed utils generic Feb 6, 2023
@kares
Copy link
Member Author

kares commented Feb 6, 2023

update the PR, since #7514 got merged over, now it's mostly just JavaEmbedUtils generic-ification

@kares kares merged commit ddf6537 into jruby:master Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants