diagnostics for EA-39399 - assert: DomInvocationHandler.copyFrom

This commit is contained in:
Dmitry Avdeev
2012-09-28 12:26:14 +04:00
parent a8ad098a83
commit b0ffd5b1e9
@@ -161,7 +161,7 @@ public abstract class DomInvocationHandler<T extends AbstractDomChildDescription
public void copyFrom(final DomElement other) {
if (other == getProxy()) return;
assert other.getDomElementType().equals(myType);
assert other.getDomElementType().equals(myType) : "Can't copy from " + other.getDomElementType() + " to " + myType;
if (!DomUtil.hasXml(other)) {
undefine();