--- old/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/SchemaImpl.java 2014-11-25 12:17:12.424617258 +0000 +++ new/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/SchemaImpl.java 2014-11-25 12:17:12.350616607 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -51,6 +51,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -125,7 +126,7 @@ return atts.values().iterator(); } - private final Map elems = new HashMap(); + private final Map elems = new LinkedHashMap(); private final Map elemsView = Collections.unmodifiableMap(elems); public void addElementDecl(XSElementDecl newDecl) { elems.put(newDecl.getName(), newDecl); @@ -204,7 +205,7 @@ return idConstraints.get(localName); } - private final Map allTypes = new HashMap(); + private final Map allTypes = new LinkedHashMap(); private final Map allTypesView = Collections.unmodifiableMap(allTypes); private final Map simpleTypes = new HashMap();