diff options
author | Maxime Mériouma-Caron <maxime.meriouma@arcbees.com> | 2015-12-01 18:39:32 -0500 |
---|---|---|
committer | Maxime Mériouma-Caron <maxime.meriouma@arcbees.com> | 2015-12-01 18:39:32 -0500 |
commit | 069a3de26498735426b47e541c5d7734b0bf6cae (patch) | |
tree | c46fc3642fc8a2b16328e61b3d91d7f21d05771e | |
parent | 797ce9bd21faa8c7c9d1fd043aac033a60ade0cc (diff) | |
download | gwtquery-069a3de26498735426b47e541c5d7734b0bf6cae.tar.gz gwtquery-069a3de26498735426b47e541c5d7734b0bf6cae.zip |
Fix lazy() ClassCast
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java index 0a2cce56..413a5ebc 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java @@ -207,7 +207,7 @@ public class LazyGenerator extends Generator { } sw.println( - "ctx = GQuery.$(getElement()).as(" + nonLazyType.getQualifiedSourceName() + "." + "ctx = GQuery.$((Element) getElement()).as(" + nonLazyType.getQualifiedSourceName() + "." + classID + ");"); sw.println("for (int i = 0; i < closures.length(); i++) {"); sw.indent(); @@ -220,5 +220,6 @@ public class LazyGenerator extends Generator { sw.println("};"); sw.outdent(); sw.println("}"); + treeLogger.log(TreeLogger.Type.ERROR, sw.toString()); } } |