提交 3cdcc8bd 编写于 作者: S sla

8025427: jstat tests fails on 32-bit platforms

Reviewed-by: ehelin, dsamersoff, dholmes, sspitsyn
上级 e9b4f182
...@@ -62,6 +62,9 @@ public class RowClosure implements Closure { ...@@ -62,6 +62,9 @@ public class RowClosure implements Closure {
double d = ((Number)value).doubleValue(); double d = ((Number)value).doubleValue();
double scaledValue = c.getScale().scale(d); double scaledValue = c.getScale().scale(d);
DecimalFormat df = new DecimalFormat(c.getFormat()); DecimalFormat df = new DecimalFormat(c.getFormat());
DecimalFormatSymbols syms = df.getDecimalFormatSymbols();
syms.setNaN("-");
df.setDecimalFormatSymbols(syms);
s = df.format(scaledValue); s = df.format(scaledValue);
} }
......
...@@ -322,18 +322,6 @@ tools/pack200/Pack200Test.java solaris-all, mac ...@@ -322,18 +322,6 @@ tools/pack200/Pack200Test.java solaris-all, mac
# 8007410 # 8007410
tools/launcher/FXLauncherTest.java linux-all tools/launcher/FXLauncherTest.java linux-all
# 8025427
sun/tools/jstat/jstatLineCounts1.sh generic-all
sun/tools/jstat/jstatLineCounts2.sh generic-all
sun/tools/jstat/jstatLineCounts3.sh generic-all
sun/tools/jstat/jstatTimeStamp1.sh generic-all
sun/tools/jstat/jstatGcCauseOutput1.sh generic-all
sun/tools/jstat/jstatLineCounts4.sh generic-all
sun/tools/jstatd/jstatdDefaults.sh generic-all
sun/tools/jstatd/jstatdExternalRegistry.sh generic-all
sun/tools/jstatd/jstatdPort.sh generic-all
sun/tools/jstatd/jstatdServerName.sh generic-all
############################################################################ ############################################################################
# jdk_jdi # jdk_jdi
......
...@@ -23,7 +23,7 @@ BEGIN { ...@@ -23,7 +23,7 @@ BEGIN {
# or more letters and spaces. It also provides for the ".", "(", and ")" # or more letters and spaces. It also provides for the ".", "(", and ")"
# characters to allow for the string "System.gc()". # characters to allow for the string "System.gc()".
# #
/^[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]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\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+$/ { /^[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*([0-9]+\.[0-9]+)|-[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+$/ {
datalines++; datalines++;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册