commit | a9e87469b6c50442eb3e4ab9d3773a02a3a10447 | [log] [tgz] |
---|---|---|
author | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Mar 11 19:44:05 2010 +0000 |
committer | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Mar 11 19:44:05 2010 +0000 |
tree | 267df6e39b641ff09e61d30ad7aba6d7be74b04c | |
parent | 6a05f9acb3af1193e026895194b2daff548c11d0 [diff] |
Fixes GenerateJavaScriptAST to not produce duplicate native polymorphic methods. http://gwt-code-reviews.appspot.com/177801 Review by: spoon git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7711 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java index 58d86ac..f088dd0 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java +++ b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
@@ -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(