# HG changeset patch # User aefimov # Date 1517230609 0 # Node ID c2f20a5bb465997cb93faac5a09013f3d7b92472 # Parent 7620d1b917c598b1cbb4b9c455f6a43da7fa45b0 8189993: Improve document portability Reviewed-by: joehw diff -r 7620d1b917c5 -r c2f20a5bb465 src/com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl.java --- a/src/com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl.java Thu Feb 15 19:53:07 2018 +0000 +++ b/src/com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl.java Mon Jan 29 12:56:49 2018 +0000 @@ -1,6 +1,5 @@ /* - * reserved comment block - * DO NOT REMOVE OR ALTER! + * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. */ /* * Copyright 1999-2002,2004,2005 The Apache Software Foundation. @@ -608,7 +607,8 @@ throws IOException, ClassNotFoundException { in.defaultReadObject(); if (nodes != null) { - nodes = new ArrayList(nodes); + // cast to Vector is required + nodes = new ArrayList((Vector)nodes); } }