You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jruby test.rb
test.rb:4: warning: ambiguous Java methods found, using submit(java.lang.Runnable)
jruby test.rb
test.rb:4: warning: ambiguous Java methods found, using submit(java.util.concurrent.Callable)
Just a guess, this seems like it depends on some unordered data structure, so using a sorted one or sorting overloads before resolution would fix the issue.
this does not seem fixable - ordering won't help much as its still not clear which one you'd like JRuby to call.
both Callable and Runnable are functional interfaces that are equal matches for proc-to-iface resolution.
Environment
Expected Behavior
Actual Behavior
Test case
Just a guess, this seems like it depends on some unordered data structure, so using a sorted one or sorting overloads before resolution would fix the issue.
Workaround
Use java_send to manually pick the overload.
The text was updated successfully, but these errors were encountered: