Closed GoogleCodeExporter closed 9 years ago
you have to call the RemoteServiceAsync which looks like
testImmutableList(ImmutableSet.of("a", "b").asList(), new AsyncCallbacl<Void>() { ... });
Original comment by jbj...@gmail.com
on 3 Sep 2014 at 9:54
That's bad :(
The workaround is to do something like ImmutableList.copyOf(new
ArrayList<>(set)), but of course that's not something that we should make you
do.
Under the current GWT serialization implementation, this is hard (impossible?)
to fix without requiring everyone who serializes ImmutableList to have every
possible implementation available on the client side. Some clients don't like
the resulting bloat. To avoid that, we'd ideally like for GWT to implement
https://code.google.com/p/google-web-toolkit/issues/detail?id=8844
A possible alternative that I've been considering is for us to have a single
ImmutableList class that delegates all its implementation to an
ImmutableListImpl class. This would allow us to have a single ImmutableList
serializer for all ImmutableLists. The downside is indirection and extra memory
on the server. It's hard to know how much that would cost. One day I hope to
look into this. Until then, we're unlikely to do much here, barring new ideas.
Sorry that I don't have something more immediate for you.
Original comment by cpov...@google.com
on 3 Sep 2014 at 12:20
[deleted comment]
We have overriden the CustomFieldSerializer with our own implementation and the
problem is solved.
Original comment by jbj...@gmail.com
on 8 Sep 2014 at 2:35
Attachments:
Clever! I think we'll do it.
Original comment by cpov...@google.com
on 8 Sep 2014 at 8:25
I'd be happy to take the revised version directly, but we'd need your legal
permission:
https://developers.google.com/open-source/cla/individual
or:
https://developers.google.com/open-source/cla/corporate
Let me know whether you'd like to do that. Otherwise, I'll figure out what we
can do to implement things from scratch.
Original comment by cpov...@google.com
on 8 Sep 2014 at 8:37
Have you found any decision on whether the patch is something you can
officially/legally contribute? Thanks.
Original comment by cpov...@google.com
on 1 Oct 2014 at 6:27
It can be contributed, with your own header, sorry for the late answer
Original comment by jbj...@gmail.com
on 25 Oct 2014 at 7:16
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
jbj...@gmail.com
on 3 Sep 2014 at 9:52