[Jruby-devel] Unpack problems

2006-05-17 Thread Evan Buswell
Array#unpack w/ "m" had a bug where only multiples of three characters would be decoded. Try: puts ["123"].pack("m").unpack("m").inspect and it works, but puts ["12"].pack("m").unpack("m").inspect throws an error. The attached patch fixes this. unpack.patch Description: Binary data

Re: [Jruby-devel] Dynamic proxies, Java interfaces, "initialize"

2006-05-17 Thread Evan Buswell
The initialize collision is really just one case of method collision. Initialize might act like its super special, but you could redefine new() to use something completely different then initialize, at which point initialize isn't special, even in vanilla Ruby. I think whatever choice is made shou