8024644: PluggableJSObject.iteratingJSObjectTest fails with jdk8-tl build
Reviewed-by: jlaskey, hannesw
--- 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;