From 069a3de26498735426b47e541c5d7734b0bf6cae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Maxime=20M=C3=A9riouma-Caron?= Date: Tue, 1 Dec 2015 18:39:32 -0500 Subject: [PATCH] Fix lazy() ClassCast --- .../main/java/com/google/gwt/query/rebind/LazyGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } } -- 2.39.5