8024644: PluggableJSObject.iteratingJSObjectTest fails with jdk8-tl build
authorsundar
Wed, 11 Sep 2013 22:51:34 +0530
changeset 19890 8074a56ed98f
parent 19889 63af9358d0dc
child 19891 f9ceff931284
child 19892 f20bcd3a2ce6
8024644: PluggableJSObject.iteratingJSObjectTest fails with jdk8-tl build Reviewed-by: jlaskey, hannesw
nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java
--- a/nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java	Wed Sep 11 20:49:28 2013 +0530
+++ b/nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java	Wed Sep 11 22:51:34 2013 +0530
@@ -28,6 +28,7 @@
 import java.nio.IntBuffer;
 import java.util.Collection;
 import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Set;
 import javax.script.ScriptEngine;
 import javax.script.ScriptEngineManager;
@@ -46,7 +47,7 @@
  */
 public class PluggableJSObjectTest {
     public static class MapWrapperObject extends JSObject {
-        private final HashMap<String, Object> map = new HashMap<>();
+        private final HashMap<String, Object> map = new LinkedHashMap<>();
 
         public HashMap<String, Object> getMap() {
             return map;