From 196cdef182ed9a51fa5a77347eb1c931dab22625 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 9 Apr 2014 20:54:41 +0200 Subject: [PATCH] AbstractMarshaller uses general exception message in extracted buildDocument() method Issue: SPR-11635 (cherry picked from commit f7a17ad) --- .../org/springframework/oxm/support/AbstractMarshaller.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-oxm/src/main/java/org/springframework/oxm/support/AbstractMarshaller.java b/spring-oxm/src/main/java/org/springframework/oxm/support/AbstractMarshaller.java index b3ef14bab9..7dd4443b2f 100644 --- a/spring-oxm/src/main/java/org/springframework/oxm/support/AbstractMarshaller.java +++ b/spring-oxm/src/main/java/org/springframework/oxm/support/AbstractMarshaller.java @@ -99,7 +99,8 @@ public abstract class AbstractMarshaller implements Marshaller, Unmarshaller { /** - * Build a new {@link Document} from this marshaller's {@link DocumentBuilderFactory}. + * Build a new {@link Document} from this marshaller's {@link DocumentBuilderFactory}, + * as a placeholder for a DOM node. * @see #createDocumentBuilderFactory() * @see #createDocumentBuilder(DocumentBuilderFactory) */ @@ -114,8 +115,7 @@ public abstract class AbstractMarshaller implements Marshaller, Unmarshaller { return documentBuilder.newDocument(); } catch (ParserConfigurationException ex) { - throw new UnmarshallingFailureException( - "Could not create document placeholder for DOMSource: " + ex.getMessage(), ex); + throw new UnmarshallingFailureException("Could not create document placeholder: " + ex.getMessage(), ex); } }