tomj 02/04/18 12:02:31
Modified: java/src/org/apache/axis/encoding/ser SimpleSerializer.java
Log:
Fix bug 8111: Use isNaN instead of == in SimpleSerializer.
Revision Changes Path
1.11 +1 -1
xml-axis/java/src/org/apache/axis/encoding/ser/SimpleSerializer.java
Index: SimpleSerializer.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/SimpleSerializer.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SimpleSerializer.java 16 Apr 2002 18:56:16 -0000 1.10
+++ SimpleSerializer.java 18 Apr 2002 19:02:31 -0000 1.11
@@ -142,7 +142,7 @@
} else {
data = ((Double) value).doubleValue();
}
- if (data == Double.NaN) {
+ if (Double.isNaN(data)) {
context.writeString("NaN");
} else if (data == Double.POSITIVE_INFINITY) {
context.writeString("INF");