Here is the similar case I found:
$ cat tx.rb
require 'xsd/datatypes'
module XSD
puts XSD::XSDDouble.new("0.0a")
end
$ jruby tx.rb
+0
I think these two cases have the same root cause.FYI.
2008/1/23, Spring Dove <[EMAIL PROTECTED]>:
>
> Hi,
>
> There is maybe a defect about SOAP::SOAPDouble.new:
>
> $ cat tb.rb
> require 'soap/baseData'
> module SOAP
> puts SOAP::SOAPDouble.new("0.0a")
> end
>
> $ jruby tb.rb
> +0
>
> $ ruby tb.rb
> /home/dusr/r185/ruby-1.8.5/lib/xsd/datatypes.rb:402:in `screen_data': {
> http://www.w3.org/2001/XMLSchema}double<http://www.w3.org/2001/XMLSchema%7Ddouble>:
> cannot accept '0.0a'. (XSD::ValueSpaceError)
> from /home/dusr/r185/ruby-1.8.5/lib/xsd/datatypes.rb:140:in `set'
> from /home/dusr/r185/ruby-1.8.5/lib/xsd/datatypes.rb:157:in `init'
> from /home/dusr/r185/ruby-1.8.5/lib/xsd/datatypes.rb:373:in
> `initialize'
> from /home/dusr/r185/ruby-1.8.5/lib/soap/baseData.rb:47:in
> `initialize'
> from /home/dusr/r185/ruby-1.8.5/lib/soap/baseData.rb:85:in
> `initialize'
> from tb.rb:6:in `new'
> from tb.rb:6
>
> Who could give any help for this? Thanks.
>