Build fix: was trying to rely on JavaScriptObject methods that haven't been committed yet. :) git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1211 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/super/com/google/gwt/emul/java/util/HashMap.java b/user/super/com/google/gwt/emul/java/util/HashMap.java index b51dcce..13ab2ad 100644 --- a/user/super/com/google/gwt/emul/java/util/HashMap.java +++ b/user/super/com/google/gwt/emul/java/util/HashMap.java
@@ -145,8 +145,8 @@ * Iterator for <code>EntrySetImpl</code>. */ private final class EntrySetIterator implements Iterator { - private Map.Entry last = null; private final Iterator iter; + private Map.Entry last = null; /** * Constructor for <code>EntrySetIterator</code>. @@ -250,6 +250,24 @@ }-*/; /** + * Returns a new array. + * + * TODO: move this to JavaScriptObject? + */ + private static native JavaScriptObject createArray() /*-{ + return []; + }-*/; + + /** + * Returns a new object. + * + * TODO: move this to JavaScriptObject? + */ + private static native JavaScriptObject createObject() /*-{ + return {}; + }-*/; + + /** * Returns <code>undefined</code>. This is technically a violation of the * JSNI contract, so we have to be very careful how we use the result. */ @@ -339,7 +357,7 @@ stringMap[key] = value; return result; }-*/; - + /** * Removes the pair whose key is equal to <code>key</code> from * <code>hashCodeMap</code>, provided that <code>key</code>'s hash code @@ -423,8 +441,8 @@ } public void clear() { - hashCodeMap = JavaScriptObject.createArray(); - stringMap = JavaScriptObject.createObject(); + hashCodeMap = createArray(); + stringMap = createObject(); nullSlot = UNDEFINED; size = 0; }