Trivial fix for issue 4067, UiBinderGenerator is not stable. Miguel
would have fixed this earlier, but thought that the values from domId
were being used directly as, well, DOM ids. Actually they name Java
fields which will hold dom ids at runtime, generated by calls to
com.google.gwt.dom.client.Document.get().createUniqueId().
Manually tested stability via diff of generated code
Reviewed by mmendez
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6486 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java b/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
index 3936155..144c44e 100644
--- a/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
+++ b/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
@@ -73,8 +73,6 @@
private static final String BUNDLE_URI_SCHEME = "urn:with:";
private static final String PACKAGE_URI_SCHEME = "urn:import:";
- private static int domId = 0;
-
// TODO(rjrjr) Another place that we need a general anonymous field
// mechanism
private static final String CLIENT_BUNDLE_FIELD = "clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay";
@@ -238,6 +236,8 @@
private final ImplicitClientBundle bundleClass;
+ private int domId = 0;
+
private int fieldIndex;
private String gwtPrefix;