[gwt-contrib] Re: Synchronize static Maps used for caching. (issue1829804)

2012-09-13 Thread skybrian
LGTM https://gwt-code-reviews.appspot.com/1829804/diff/1/user/src/com/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl.java File user/src/com/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl.java (right): https://gwt-code-reviews.appspot.com/1829804/diff/1/user/src/com/google

[gwt-contrib] Re: Add experimental GWT.unloadModule() function. (issue1827804)

2012-09-13 Thread Ray Cromwell
Appreciate any further suggestions for cleaning up memory usage. The additional of Disposable roughly parallels the same use in JSCompiler's Closure Library. In theory. V8's GC should be good enough to clean up everything if you just blow away the

[gwt-contrib] Add experimental GWT.unloadModule() function. (issue1827804)

2012-09-13 Thread cromwellian
Reviewers: skybrian, Description: Add experimental GWT.unloadModule() function. Enable via Invoke via window.__gwt_activeModules[moduleName].unloadModule(). Attempts to do the following: 1) Cleanup all outstanding non-primitive properties from $wnd 2) Remove all registered event listeners 3) d

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread skybrian
LGTM https://gwt-code-reviews.appspot.com/1830803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread t . broyer
On 2012/09/14 00:27:24, skybrian wrote: On 2012/09/13 20:22:43, tbroyer wrote: > I kind of like the enums as in com.google.gwt.dom.client.Style (also used in > SafeStyles), but I'll make the setResponseType(String) public, and add a > getResponseTypeString() to the enum. Oops, I guess I

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread skybrian
On 2012/09/13 20:22:43, tbroyer wrote: I kind of like the enums as in com.google.gwt.dom.client.Style (also used in SafeStyles), but I'll make the setResponseType(String) public, and add a getResponseTypeString() to the enum. Oops, I guess I should have responded. I'm fine with it either w

[gwt-contrib] Re: Synchronize static Maps used for caching. (issue1829804)

2012-09-13 Thread t . broyer
https://gwt-code-reviews.appspot.com/1829804/diff/1/user/src/com/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl.java File user/src/com/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl.java (right): https://gwt-code-reviews.appspot.com/1829804/diff/1/user/src/com/google/web/bi

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread t . broyer
On 2012/09/13 18:23:04, skybrian wrote: I don't see any usages of XmlHttpRequest.ResponseType in Google code. OK, so I'll remove the create(ResponseType). We could have constants instead of the enum. I kind of like the enums as in com.google.gwt.dom.client.Style (also used in SafeStyles), b

[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)

2012-09-13 Thread t . broyer
On 2012/09/13 18:35:35, manolo.carrasco wrote: We are using domain interfaces in a couple of projects and finally we decided to patch this file to avoid such amount of extra code. I thought this was a very small piece of code which IMHO fixes an important issue, and could be related with this

[gwt-contrib] Re: Synchronize static Maps used for caching. (issue1829804)

2012-09-13 Thread jat
LGTM after fixing for comment or deciding to disregard it. https://gwt-code-reviews.appspot.com/1829804/diff/1/user/src/com/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl.java File user/src/com/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl.java (right): https://gwt-code-r

[gwt-contrib] Synchronize static Maps used for caching. (issue1829804)

2012-09-13 Thread t . broyer
Reviewers: unnurg, jtamplin, Message: I've grep'ed in all com.google.web.bindery and didn't find any other instance. I also quickly looked into com.google.gwt in case there could have been similar issues with GWT-RPC or some "shared" code, but didn't find anything either. Description: Synchroniz

[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)

2012-09-13 Thread manuel . carrasco . m
We are using domain interfaces in a couple of projects and finally we decided to patch this file to avoid such amount of extra code. I thought this was a very small piece of code which IMHO fixes an important issue, and could be related with this commit, so that is the reason to suggest the inclus

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread skybrian
I don't see any usages of XmlHttpRequest.ResponseType in Google code. We could have constants instead of the enum. https://gwt-code-reviews.appspot.com/1830803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread Brian Slesinsky
Should we kill off the ResponseType enum and just take a String? It's simpler, and this is low-level, after all. - Brian On Thu, Sep 13, 2012 at 11:08 AM, wrote: > > https://gwt-code-reviews.appspot.com/1830803/diff/2003/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java > File user/src/com

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread jat
https://gwt-code-reviews.appspot.com/1830803/diff/2003/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java File user/src/com/google/gwt/xhr/client/XMLHttpRequest.java (right): https://gwt-code-reviews.appspot.com/1830803/diff/2003/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java#newcode

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread t . broyer
https://gwt-code-reviews.appspot.com/1830803/diff/2003/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java File user/src/com/google/gwt/xhr/client/XMLHttpRequest.java (right): https://gwt-code-reviews.appspot.com/1830803/diff/2003/user/src/com/google/gwt/xhr/client/XMLHttpRequest.java#newcode

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread t . broyer
On 2012/09/13 17:16:52, skybrian wrote: Since this API is essentially just a wrapper around the JavaScript object and there's no place to stash the desired response type, adding the setter and deprecating create() with a response type seems like the way to go. Done. I wonder if we shouldn

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread skybrian
I'm not all that familiar with XMLHttpRequest, but every JavaScript example I can find sets the response type between open() and send(). I don't understand John's concern about a race condition since it seems like the request won't be sent until send() is called? I think we should follow common pr

[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)

2012-09-13 Thread Thomas Broyer
Well, if you ask me, it can wait the next release. There's a workaround in the meantime: don't rely on ValidationTool to generate the Deobfuscator.Builder, generate it yourself by other means. I wrote such a generator for a project, 'cause we had many @SkipInterfaceValidation methods (and much work

[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)

2012-09-13 Thread skybrian
On 2012/09/13 09:57:02, manolo.carrasco wrote: RF fails in the case of @ProxyFor pointing to a domain-interface instead of a domain-implementation, could you consider to include the patch https://gwt-code-reviews.appspot.com/1764804/ as well in 2.5? I think that counts as a new feature instea

Re: [gwt-contrib] Last-minute critical bug report

2012-09-13 Thread Unnur Gretarsdottir
Yes - we can put it into rc2 assuming its small and you can get it in today. On Sep 13, 2012 6:33 AM, "John A. Tamplin" wrote: > Yeah, just add a synchronized block for now. > > John A. Tamplin (android) > On Sep 13, 2012 8:02 AM, "Thomas Broyer" wrote: > >> Found on StackOverflow: http://stacko

Re: [gwt-contrib] Last-minute critical bug report

2012-09-13 Thread John A. Tamplin
Yeah, just add a synchronized block for now. John A. Tamplin (android) On Sep 13, 2012 8:02 AM, "Thomas Broyer" wrote: > Found on StackOverflow: http://stackoverflow.com/q/12403658/116472 > > We have a critical issue with RequestFactory (AutoBeans actually): we use > static HashMaps as shared ca

[gwt-contrib] Last-minute critical bug report

2012-09-13 Thread Thomas Broyer
Found on StackOverflow: http://stackoverflow.com/q/12403658/116472 We have a critical issue with RequestFactory (AutoBeans actually): we use static HashMaps as shared caches without any synchronization! Short-term fix: because neither ConcurrentHashMap or Collections.synchronizedMap are emulate

[gwt-contrib] Re: Issue 7381: 2 RequestFactory with 2 differents Proxy on the same domain class (issue1712803)

2012-09-13 Thread manuel . carrasco . m
On 2012/09/06 21:11:52, tbroyer wrote: https://gwt-code-reviews.appspot.com/1712803/diff/2001/user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java File user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java (right): https://gwt-code-reviews.appspot.com/

[gwt-contrib] Re: Add a getter for XHR's responseType. (issue1830803)

2012-09-13 Thread t . broyer
On 2012/09/12 21:02:42, jtamplin wrote: On 2012/09/12 20:47:20, skybrian wrote: > Hmm, I'm inclined to skip this patch for GWT 2.5. The typo fix at least makes it > work on some browsers... If I understand Thomas' test results, the getter works properly everywhere -- it is the existing set