Skip to content

Commit d734211

Browse files
author
aefimov
committed
8189993: Improve document portability
Reviewed-by: joehw
1 parent 3d42c3f commit d734211

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jaxp/src/com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
* reserved comment block
3-
* DO NOT REMOVE OR ALTER!
2+
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
43
*/
54
/*
65
* Copyright 1999-2002,2004,2005 The Apache Software Foundation.
@@ -608,7 +607,8 @@ private void readObject(ObjectInputStream in)
608607
throws IOException, ClassNotFoundException {
609608
in.defaultReadObject();
610609
if (nodes != null) {
611-
nodes = new ArrayList(nodes);
610+
// cast to Vector is required
611+
nodes = new ArrayList((Vector)nodes);
612612
}
613613
}
614614

0 commit comments

Comments
 (0)