Skip to content

recognize RubySymbol as assignable to String#8057

Merged
enebo merged 4 commits intojruby:masterfrom
evaniainbrooks:8015-java-method-lookup-arity
Jan 2, 2024
Merged

recognize RubySymbol as assignable to String#8057
enebo merged 4 commits intojruby:masterfrom
evaniainbrooks:8015-java-method-lookup-arity

Conversation

@evaniainbrooks
Copy link
Contributor

@evaniainbrooks evaniainbrooks commented Dec 30, 2023

resolves #8015

@enebo enebo requested review from headius and kares December 30, 2023 17:30
@enebo
Copy link
Member

enebo commented Dec 30, 2023

I think this looks good (this is suggestion number 2 in #8015) but I think we want @kares and @headius to consider this change to make sure classifying Symbol as j.l.String has no unexpected consequences. The single arity example show it already set Symbol as String so I am partially confused how it arrives at this behavior without your fix. There maybe is followup cleanup to remove some code which was somehow doing that? Not sure.

@evaniainbrooks Not sure if this PR will get looked at until after new years so it may be a few days.

@evaniainbrooks evaniainbrooks force-pushed the 8015-java-method-lookup-arity branch from ebecf95 to 34d7c9a Compare January 1, 2024 21:32
Copy link
Member

@kares kares left a comment

Choose a reason for hiding this comment

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

LGTM, well done!

@kares kares added this to the JRuby 9.4.6.0 milestone Jan 2, 2024
@enebo enebo merged commit 98f56d4 into jruby:master Jan 2, 2024
@evaniainbrooks evaniainbrooks deleted the 8015-java-method-lookup-arity branch January 26, 2026 16:08
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.

Java method lookup for arity-1 method with inexact argument fails in the presence of arity-2 method with same name

3 participants