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
Presumably one of the redundant sets of definitions should be removed.
Tested on jruby 9.4.6.0 (3.1.4) 2024-02-20 576fab2 OpenJDK 64-Bit Server VM 21.0.2+13-LTS on 21.0.2+13-LTS +jit [arm64-darwin]. The code hasn't changed in 9.4.7.0 or master, however.
The text was updated successfully, but these errors were encountered:
Thanks @ikaronen-relex ... It would seem the aliases probably preceded the @JRubyMethod definitions and no one noticed after the real methods were added?
It would seem the aliases probably preceded the @JRubyMethod definitions
Yeah this is a good theory. At some point @kares moved most of the Ruby-based definitions of JI logic in Java, and I'm sure the aliases just got doubled up. Nice to get rid of those warnings! 👍
In seems that the
proxy.defineAlias
calls at https://github.com/jruby/jruby/blob/9.4.6.0/core/src/main/java/org/jruby/javasupport/ext/JavaLang.java#L359 generate warnings in verbose mode, presumably because methods with the same name have already been defined byproxy.defineAnnotatedMethods
just before.This can be easily demonstrated with
jruby -S irb
:Presumably one of the redundant sets of definitions should be removed.
Tested on jruby 9.4.6.0 (3.1.4) 2024-02-20 576fab2 OpenJDK 64-Bit Server VM 21.0.2+13-LTS on 21.0.2+13-LTS +jit [arm64-darwin]. The code hasn't changed in 9.4.7.0 or master, however.
The text was updated successfully, but these errors were encountered: