--- old/jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/DTMDefaultBase.java 2015-01-19 14:58:11.282502687 +0300 +++ new/jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/DTMDefaultBase.java 2015-01-19 14:58:11.222502688 +0300 @@ -937,17 +937,9 @@ // needs need extreme speed. int whichDTMindex=nodeHandle>>>DTMManager.IDENT_DTM_NODE_BITS; - - // %REVIEW% Wish I didn't have to perform the pre-test, but - // someone is apparently asking DTMs whether they contain nodes - // which really don't belong to them. That's probably a bug - // which should be fixed, but until it is: - if(m_mgrDefault.m_dtms[whichDTMindex]!=this) - return NULL; - else - return - m_mgrDefault.m_dtm_offsets[whichDTMindex] - | (nodeHandle & DTMManager.IDENT_NODE_DEFAULT); + return + m_mgrDefault.m_dtm_offsets[whichDTMindex] + | (nodeHandle & DTMManager.IDENT_NODE_DEFAULT); } int whichDTMid=m_dtmIdent.indexOf(nodeHandle & DTMManager.IDENT_DTM_DEFAULT);