Thursday, February 5, 2015

I need java.util.Collections synchronized classes.

I'm trying to share some Java code between my server and client using GWT.  When I try to compile this Java code for GWT, I find that Collections.synchronizedSortedSet() is not defined for GWT.

I understand why Javascript doesn't need synchronized versions of these collections, but I can't modify the Java code I want to share with GWT.

Does anyone have a workaround for this kind of problem?  I don't really understand how to use the "super-source" tag in the module definition.  Could that be used to replace Collections.synchronizedSortedSet() with a SortedSet?

--
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