Pass the context instance itself instead of its class.

In GWT we can't use Class.isAssignableFrom. We need the original instance so
that we can do (ctx instanceof Map<?,?>).
This commit is contained in:
Michael Bayne
2011-10-29 15:29:18 -07:00
parent 69826a707e
commit f6c6f4916c
4 changed files with 11 additions and 8 deletions
@@ -186,10 +186,10 @@ public class Template
return fetcher.get(data, name);
} catch (Exception e) {
// zoiks! non-monomorphic call site, update the cache and try again
fetcher = _compiler.collector.createFetcher(key.cclass, key.name);
fetcher = _compiler.collector.createFetcher(data, key.name);
}
} else {
fetcher = _compiler.collector.createFetcher(key.cclass, key.name);
fetcher = _compiler.collector.createFetcher(data, key.name);
}
// if we were unable to create a fetcher, just return null and our caller can either try