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

Comments

Projects
None yet
4 participants
@iconara
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

This comment has been minimized.

Show comment
Hide comment
@enebo

enebo Nov 5, 2014

Member

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).

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

This comment has been minimized.

Show comment
Hide comment
@krunal

krunal 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)

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

This comment has been minimized.

Show comment
Hide comment
@enebo

enebo Nov 10, 2014

Member

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.

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

This comment has been minimized.

Show comment
Hide comment
@enebo

enebo Nov 10, 2014

Member

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

Member

enebo commented Nov 10, 2014

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

@kares

This comment has been minimized.

Show comment
Hide comment
@kares

kares Jan 15, 2016

Member

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

Member

kares commented Jan 15, 2016

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

@kares kares closed this 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