Skip to content

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

@iconara

Description

@iconara

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions