Forum: JRuby warning: ambiguous Java methods found (JRuby 1.7)

Posted by Andy Joel (f2andy)
on 2012-11-14 11:59
Just downloaded JRuby 1.7.0, and running unit tests on a Rails 3 project
I am see this warning, which I was not seeing with 1.6.7:

warning: ambiguous Java methods found

Okay, I get why it is happening, JRuby cannot be sure I am wanting
java.awt.Color.new(float, float, float) or java.awt.Color.new(double,
double, double), but then, who cares, they both do the same thing. Is
there a way to either turn off the warnings, or to explicitly tell JRuby
which one to use?
Posted by Keith B. (keith_b)
on 2012-11-14 16:04
(Received via mailing list)
Check out java_send and java_alias in
https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby.

- Keith

Keith R. Bennett
http://about.me/keithrbennett
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.