Closed graaff closed 6 years ago
This seems to be a jruby issue:
>jruby -e "require 'ipaddr'; IPAddr.new('2a00')"
>ruby -e "require 'ipaddr'; IPAddr.new('2a00')"
/usr/lib64/ruby/1.9.1/ipaddr.rb:496:in `rescue in initialize': invalid address (ArgumentError)
from /usr/lib64/ruby/1.9.1/ipaddr.rb:493:in `initialize'
from -e:1:in `new'
from -e:1:in `<main>'
All ruby implementations we have on gentoo (ruby1.8, ruby1.9 ree1.8 and rubinius) throws an exception with this code, but jruby doesn't.
I've create an issue about it on jruby's github: https://github.com/jruby/jruby/issues/310
Fixed in master
With jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-17 fffffff) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java] I'm getting the following test failure (or rather, lack of failure ;-)