Skip to content

Commit

Permalink
Suppress spurious error message when magic method injection is not used
Browse files Browse the repository at this point in the history
Change-Id: Ie19d1628522118c40634208e2e01495df1916c4f
  • Loading branch information
JamesXNelson committed Feb 19, 2014
1 parent a6b04c1 commit 4dc9937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/core/src/com/google/gwt/dev/jjs/impl/UnifyAst.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.google.gwt.dev.jjs.impl;

import com.google.gwt.core.ext.BadPropertyValueException;
import com.google.gwt.core.ext.ConfigurationProperty;
import com.google.gwt.core.ext.PropertyOracle;
import com.google.gwt.core.ext.TreeLogger;
Expand Down Expand Up @@ -751,7 +752,7 @@ private void assimilateUnit(CompilationUnit unit) {
instantiate(t);
}
if (t instanceof JInterfaceType && ((JInterfaceType) t).isJsInterface()) {
instantiate(t);
instantiate(t);
}
}
}
Expand Down Expand Up @@ -1206,6 +1207,7 @@ public String toString() {
"You do not need to specifiy the magic method parameter or return types as they all have the same signature.");
}
}
}catch(BadPropertyValueException ignored){ // User did not include magic method gwt.xml
}catch(Exception e){
logger.log(Type.WARN, "Error encountered looking up user-defined magic methods", e);
}
Expand Down

0 comments on commit 4dc9937

Please sign in to comment.