On Aug 10, 5:15 am, Aleksey Didik <[email protected]> wrote: > In my project I need to transfer Key<T> through net, so it must be > serializable. > I have found that snapshot20090512 have this functionality, but > snapshot20090706 already not. > Why possiblity to serialize Key<T> was exluded from Guice? > Will it be added later, in 2.1 version?
We decided that serializability wasn't a very good idea for Keys. To work around this, implement the serialization contract manually in your classes that have a Key field. http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
