Re: [Simpleweb-Support] Problem with session and generics
Brought to you by:
niallg
From: frank m. <fra...@go...> - 2011-11-04 21:01:18
|
On Fri, 4 Nov 2011 11:24:02 +0000 Toby <tob...@gm...> wrote: > It looks like the Session implements Map but uses a Lease object which uses > the generic type for its key. So I understand this to mean that in > Session<T>, the T refers to the Key of the underlying map and Objects are > stored as values. > > Not sure if that's right, I just skimmed the source. If I'm wrong, someone > will correct me, I'm sure. This does sound right, unfortunately I've still not found a way to actually use the interface without the above type error (I'm assuming that session keys are Strings and values are Integer). Does anybody have a working example? |