>Your compile report should tell you why your controller is now in the left over fragment.
I am aware of that, and that was exactly why I post this, as the soyc report shows a compiler-code path, and no "dependency path". Like mentioned, the controller creation code is ONLY called through the GWT.runAsnc(...) code but still the socy show like if it was called from "different" method. The report isn't very clear on these details, it just shows a list of methods even do they are not related, that is, they don't call each other direct or indirectly (even not when walking through the complete path or setting breakpoints).
> I assume that GWT.runAsync(callback) is a typo in your execute method and it should be GWT.runAsync(async)..)
Yes, thanks.
> and pruned useless code and thus the CodeSplitter algorithm still sees two possible paths
Good point, thanks for noticing...
Op dinsdag 18 december 2012 16:54:40 UTC+1 schreef Jens het volgende:
Your compile report should tell you why your controller is now in the left over fragment. Its always hard to tell whats going on without knowing the whole code and the compile report.For example a wild guess: In your second example you have two GWT.runAsync() calls with the same AsyncCallback (I assume that GWT.runAsync(callback) is a typo in your execute method and it should be GWT.runAsync(async)..). At first sight you have 2 possible paths now to load your controller. Maybe at the time the split points are calculated the GWT compiler has not yet optimized your IF statement to if(true) { .. } and pruned useless code and thus the CodeSplitter algorithm still sees two possible paths (although I think that its not the case, but I don't know the compiler flow).-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/frRSlTenatsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment