From 75b2463cdefe789fd7745eeca987de81f27cf5b1 Mon Sep 17 00:00:00 2001 From: Athijegannathan Sundararajan Date: Wed, 11 Sep 2013 22:51:34 +0530 Subject: [PATCH] 8024644: PluggableJSObject.iteratingJSObjectTest fails with jdk8-tl build Reviewed-by: jlaskey, hannesw --- .../src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java b/nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java index 1b531dfc0a8..acb57164029 100644 --- a/nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java +++ b/nashorn/test/src/jdk/nashorn/api/scripting/PluggableJSObjectTest.java @@ -28,6 +28,7 @@ package jdk.nashorn.api.scripting; 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 @@ import org.testng.annotations.Test; */ public class PluggableJSObjectTest { public static class MapWrapperObject extends JSObject { - private final HashMap map = new HashMap<>(); + private final HashMap map = new LinkedHashMap<>(); public HashMap getMap() { return map;