-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
1.3
-
x86
-
linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2178855 | 7 | Joe Wang | P3 | Closed | Fixed | m05 |
JDK-2178856 | 6u18 | Abhijit Saha | P3 | Resolved | Fixed | b02 |
JDK-2179013 | 5.0u35 | Abhijit Saha | P4 | Closed | Fixed | b02 |
com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl.writeToString(Node) has code like this:
try {
// ...
} catch (RuntimeException e) {
// ...
throw new LSException(LSException.SERIALIZE_ERR, e.toString());
} catch (IOException ioe) {
// ...
throw new DOMException(DOMException.DOMSTRING_SIZE_ERR, msg);
}
If there is a failure from some implementation-internal code, the stack trace will be lost.
Observed because prepareForSerialization can throw NPE in
next = node.getNextSibling();
which I will report separately if I can figure out under which conditions it occurs.
Observed in JDK 5 but JDK 7 seems to still have the same code.
try {
// ...
} catch (RuntimeException e) {
// ...
throw new LSException(LSException.SERIALIZE_ERR, e.toString());
} catch (IOException ioe) {
// ...
throw new DOMException(DOMException.DOMSTRING_SIZE_ERR, msg);
}
If there is a failure from some implementation-internal code, the stack trace will be lost.
Observed because prepareForSerialization can throw NPE in
next = node.getNextSibling();
which I will report separately if I can figure out under which conditions it occurs.
Observed in JDK 5 but JDK 7 seems to still have the same code.
- backported by
-
JDK-2178856 DOMSerializerImpl.writeToString swallows nested exceptions
- Resolved
-
JDK-2178855 DOMSerializerImpl.writeToString swallows nested exceptions
- Closed
-
JDK-2179013 DOMSerializerImpl.writeToString swallows nested exceptions
- Closed