Mercurial > hg > openjdk > jdk6 > jaxp
changeset 86:efb24af909a0
8015978: Incorrect transformation of XPath expression "string(-0)"
Reviewed-by: darcy, joehw
author | aefimov |
---|---|
date | Tue, 29 Oct 2013 08:11:44 +0000 |
parents | 20ffb814205c |
children | 05c35de6d704 |
files | drop_included/jaxp_src/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/drop_included/jaxp_src/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java Tue Oct 29 08:10:15 2013 +0000 +++ b/drop_included/jaxp_src/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java Tue Oct 29 08:11:44 2013 +0000 @@ -950,6 +950,9 @@ if (Double.isNaN(d) || Double.isInfinite(d)) return(Double.toString(d)); + //Convert -0.0 to +0.0 other values remains the same + d = d + 0.0; + // Use the XPath formatter to ignore locales StringBuffer result = threadLocalStringBuffer.get(); result.setLength(0);