From 307dcf77c1f3753c0851578ffb92e3a66552fc87 Mon Sep 17 00:00:00 2001 From: "peter.gromov" Date: Thu, 11 Nov 2010 16:53:59 +0300 Subject: [PATCH] more evidence on xi:included xml non-equivalence (EA-23307) --- .../com/intellij/util/xml/impl/PhysicalDomParentStrategy.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xml/dom-impl/src/com/intellij/util/xml/impl/PhysicalDomParentStrategy.java b/xml/dom-impl/src/com/intellij/util/xml/impl/PhysicalDomParentStrategy.java index 89b2eaefd408..afaa453d1bbd 100644 --- a/xml/dom-impl/src/com/intellij/util/xml/impl/PhysicalDomParentStrategy.java +++ b/xml/dom-impl/src/com/intellij/util/xml/impl/PhysicalDomParentStrategy.java @@ -82,7 +82,9 @@ public class PhysicalDomParentStrategy implements DomParentStrategy { final XmlElement thatElement = ((PhysicalDomParentStrategy)o).myElement; if (xmlElementsEqual(myElement, thatElement)) { if (myElement != thatElement) { - assert myElement.getNavigationElement() == thatElement.getNavigationElement(); + final PsiElement nav1 = myElement.getNavigationElement(); + final PsiElement nav2 = thatElement.getNavigationElement(); + assert nav1 == nav2 : nav1 + "!=" + nav2; } return true; }