Hi folks,
I'm using the Apache XML-RPC 1.2-b1 library to communicate with a process running on Frontier however the library seems to be improperly encoding doubles.
According to the spec[1] only standard decimal representation is supported:
At this time, only decimal point notation is allowed, a plus or a minus, followed by any number of numeric characters, followed by a period and any number of numeric characters.
However I am occasionally seeing results being passed using scientific notification:
<value><double>2.059538383036852E-4</double></value>
my Java code is doing:
Vector result = new Vector( 2 ); result.add( new Integer( doc.get( "id" ) ) ); result.add( new Double( hits.score( i ) ) );
to send doubles back to Frontier.
I didn't find anything in the bug database. I also tried the older v1.1 library with the same result. Is it a known problem?
Many thanks,
Matt
[1] http://www.xmlrpc.com/spec/
-- Evectors Software Email:[EMAIL PROTECTED] Web:http://www.evectors.com Tel:+44-(0)7977-076-709 Blog:http://matt.blogs.it/