#193 doc.numericValueOf(...)

dom4j_1.6.x
open
nobody
None
5
2012-10-08
2010-11-20
pawos
No

Version dom4j 1.6.1

doc.numericVakueOf returns bad Long values for example:

<methodCall id="-592963964639210323"><methodName>findSuccessor</methodName><params><param><value><base64>gWKk4UvNuLsZ9O4wJzud9TW+8RM=</base64></value></param><param><value><int>60</int></value></param></params></methodCall>

Long id = doc.numericValueOf("//@id").longValue();

returns id = -592963964639059227

Discussion