Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous method warnings in core_ext/object.rb in 9k #2104

Closed
iconara opened this issue Nov 5, 2014 · 5 comments
Closed

Ambiguous method warnings in core_ext/object.rb in 9k #2104

iconara opened this issue Nov 5, 2014 · 5 comments
Milestone

Comments

@iconara
Copy link
Contributor

iconara commented Nov 5, 2014

When I run jruby-head I get these warnings (I get it whenever a JRuby process starts up when I run tests with rspec and when I run bundle):

file:/Users/theo/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/java/core_ext/object.rb:27 warning: ambiguous Java methods found, using isJavaIdentifierStart(int)
file:/Users/theo/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/java/core_ext/object.rb:28 warning: ambiguous Java methods found, using isJavaIdentifierPart(int)

Looks like it's this method:

cc.java_identifier_start? frag[0].ord and

$ ruby -v
jruby 9000.dev-SNAPSHOT (2.1.2p142) 2014-11-05 624823a Java HotSpot(TM) 64-Bit Server VM 25.0-b70 on 1.8.0-b132 +jit [darwin-x86_64]
$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
@enebo
Copy link
Member

enebo commented Nov 5, 2014

Just a drive-by (meaning I am not looking into this) comment is that in Java 8 some default methods on interfaces are the cause of this. I think some of our internal libraries need to be tweaked to account for these new signatures. You can run on Java 7 to confirm this is the cause (e.g. you should not see the warnings).

@krunal
Copy link

krunal commented Nov 7, 2014

Getting same warning while executing 'rails s puma' in development mode and server is getting stuck. And it works perfectly fine with JRuby 1.7.

file:/home/krunal/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/java/core_ext/object.rb:27 warning: ambiguous Java methods found, using isJavaIdentifierStart(int)
file:/home/krunal/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/java/core_ext/object.rb:28 warning: ambiguous Java methods found, using isJavaIdentifierPart(int)

java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.13.10.1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

@enebo
Copy link
Member

enebo commented Nov 10, 2014

Ok I did not expect this to be an issue with 1.7. The the interface methods are a general cause of this but it must not be this specific issue.

@enebo
Copy link
Member

enebo commented Nov 10, 2014

Err Java 1.7 not JRuby 1.7 :) Numbers...what can you do?

@kares
Copy link
Member

kares commented Jan 15, 2016

has been fixed since ... along the lines of 1.7.x releases

@kares kares closed this as completed Jan 15, 2016
@enebo enebo modified the milestones: JRuby 9.0.5.0, JRuby 1.7.24 Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants