tmm1/http_parser.rb — Issue #16: HTTP::Parser.new on JRuby fails
Author: jordansissel
Created: 2012-02-22 09:59:09+00:00
State: open

% ruby --1.9 -e 'require "http/parser"; puts HTTP::Parser; puts HTTP::Parser.new'
HTTP::Parser
TypeError: wrong argument type unknown (expected Struct)
(root) at -e:1

% ruby --version
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java]

% gem list http_parser.rb
http_parser.rb (0.5.3 ruby java)

Fails in JRuby 1.6.5 and 1.6.6. Let me know if you need any more information :)