mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 14:10:36 +00:00
8015978: Incorrect transformation of XPath expression "string(-0)"
Reviewed-by: darcy, joehw
This commit is contained in:
parent
b914f8d6be
commit
e6d0dba36c
@ -952,9 +952,12 @@ public final class BasisLibrary {
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
if (Double.isNaN(d) || Double.isInfinite(d))
|
||||
if (!Double.isFinite(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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user