Wicket-Guice will inject serializable Proxy.
It seems Guice's plain Injector injects the binding. Check why.

On Wed, Mar 21, 2012 at 9:55 AM, Wilhelmsen Tor Iver <toriv...@arrive.no> wrote:
>> Hi I get a serialize exception in a panel of mine its correct that one of 
>> the contained fields cannot be serialized, however this field are injected 
>> and should not be touched by the checker, the field are marked with the 
>> @inject  annotation. I'm using guice for injection.. Any thing obvious wrong 
>> with this?
>
> Java serialization does not care for that annotation, only whether it is 
> declared transient or sports the Serializable marker interface. Frankly it 
> baffles me that they didn't just default to letting everything be 
> serializable and let the programmer deal with stuff that's not supposed to 
> be, since it otherwise just causes endless exceptions and adding an otherwise 
> pointless interface inheritance...
>
> - Tor Iver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to