changeset 19890:8074a56ed98f

8024644: PluggableJSObject.iteratingJSObjectTest fails with jdk8-tl build Reviewed-by: jlaskey, hannesw
author sundar
date Wed, 11 Sep 2013 22:51:34 +0530
parents 63af9358d0dc
children f9ceff931284 f20bcd3a2ce6
files nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;