Revision: 7711
Author: sco...@google.com
Date: Thu Mar 11 11:44:05 2010
Log: Fixes GenerateJavaScriptAST to not produce duplicate native polymorphic methods.

http://gwt-code-reviews.appspot.com/177801
Review by: spoon

http://code.google.com/p/google-web-toolkit/source/detail?r=7711

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java Mon Mar 1 10:24:16 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java Thu Mar 11 11:44:05 2010
@@ -374,9 +374,9 @@
          * causes no harm.
          */
jsFunction = new JsFunction(sourceInfo, topScope, globalName, true);
-        if (polymorphicNames.containsKey(x)) {
-          polymorphicJsFunctions.add(jsFunction);
-        }
+      }
+      if (polymorphicNames.containsKey(x)) {
+        polymorphicJsFunctions.add(jsFunction);
       }
       methodBodyMap.put(x.getBody(), jsFunction);
       jsFunction.getSourceInfo().addCorrelation(

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to