On Thursday, April 2, 2015 at 3:08:11 PM UTC+2, Vic wrote:
Wow, Thomas, thanks for response. When I changed generator implementation toString className = packageName + "." + simpleName;
if (printWriter != null) {....
className = composer.getCreatedClassName();
}
return className;it started to work as expected. Thank you very much. Sometimes GWT sticks me up by its unpredictable behavior.
"unpredictable" ?! GWT's behavior is in 99.9% of the cases very much predictable, sometimes "unexpected", but predictable.
In this case, it's in the javadoc: http://www.gwtproject.org/javadoc/latest/com/google/gwt/core/ext/Generator.html#generate(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, java.lang.String)
Returns:
the name of a subclass to substitute for the requested class, or return null
to cause the requested type itself to be used
You returned null in some cases, and in those cases, GeneratedInterface was used, as predicted.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment