8062518: AIOBE occurs when accessing to document function in extended function in JAXP

Reviewed-by: joehw
This commit is contained in:
Aleksei Efimov 2015-05-08 11:07:35 +03:00
parent bd394344b3
commit 4b9b3c027f
3 changed files with 163 additions and 2 deletions

View file

@ -567,8 +567,12 @@ public final class MultiDOM implements DOM {
}
public NodeList makeNodeList(DTMAxisIterator iter) {
// TODO: gather nodes from all DOMs ?
return _main.makeNodeList(iter);
int index = iter.next();
if (index == DTM.NULL) {
return null;
}
iter.reset();
return _adapters[getDTMId(index)].makeNodeList(iter);
}
public String getLanguage(int node) {