zaadjis created JRUBY-6674: ------------------------------ Summary: Inconsistent java method/signature choosing depending on java version/platform Key: JRUBY-6674 URL: https://jira.codehaus.org/browse/JRUBY-6674 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.6.7 Reporter: zaadjis Attachments: method_choosing_bug.rb
On Windows it picks [.submit(Runnable)|http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ExecutorService.html#submit%28java.lang.Runnable%29]: {noformat} Z:\ssl>jruby --version jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) Client VM 1.7.0_04) [Windows Server 2008 R2-x86-java] Z:\ssl>jruby method_choosing_bug.rb opening connection to example.com... opened <- "GET / HTTP/1.1\r\nAccept: */*\r\nHost: example.com\r\n\r\n" Conn close because of error can't convert nil into String TypeError: can't convert nil into String concat at org/jruby/RubyString.java:2485 rbuf_fill at method_choosing_bug.rb:12 readuntil at c:/jruby-1.6.7/lib/ruby/1.8/net/protocol.rb:116 readline at c:/jruby-1.6.7/lib/ruby/1.8/net/protocol.rb:126 read_status_line at c:/jruby-1.6.7/lib/ruby/1.8/net/http.rb:2026 read_new at c:/jruby-1.6.7/lib/ruby/1.8/net/http.rb:2015 request at c:/jruby-1.6.7/lib/ruby/1.8/net/http.rb:1051 __file__ at method_choosing_bug.rb:23 start at c:/jruby-1.6.7/lib/ruby/1.8/net/http.rb:543 (root) at method_choosing_bug.rb:23 {noformat} On Linux it's [.submit(Callable)|http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ExecutorService.html#submit%28java.util.concurrent.Callable%29]: {noformat} $ jruby --version jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.6.0_23) [linux-amd64-java] $ jruby method_choosing_bug.rb opening connection to example.com... opened <- "GET / HTTP/1.1\r\nAccept: */*\r\nHost: example.com\r\n\r\n" -> "HTTP/1.0 302 Found\r\n" -> "Location: http://www.iana.org/domains/example/\r\n" -> "Server: BigIP\r\n" -> "Connection: Keep-Alive\r\n" -> "Content-Length: 0\r\n" -> "\r\n" reading 0 bytes... -> "" read 0 bytes Conn keep-alive #<Net::HTTPFound 302 Found readbody=true> {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email