[infinispan-dev] Generify MarshalledEntryImpl ?
Mircea Markus
mmarkus at redhat.com
Thu Sep 12 11:42:07 EDT 2013
good point, I'll do that part of ISPN-3478.
On Sep 12, 2013, at 4:09 PM, Galder Zamarreño <galder at redhat.com> wrote:
> Hi,
>
> If MarshalledEntry is generalized with <K, V>, shouldn't MarshalledEntryImpl be too?
>
> Imagine I have:
>
> CacheWriter<Integer, String> boundedStore = new SingleFileStore();
>
> Trying to write throws a unchecked assinment warning when it shouldn't since I'm using the <K, V> and types expected by the CacheWriter:
>
> boundedStore.write(new MarshalledEntryImpl(1, "v1", null, getMarshaller()));
>
> Cheers,
> --
> Galder Zamarreño
> galder at redhat.com
> twitter.com/galderz
>
> Project Lead, Escalante
> http://escalante.io
>
> Engineer, Infinispan
> http://infinispan.org
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
Cheers,
--
Mircea Markus
Infinispan lead (www.infinispan.org)
More information about the infinispan-dev
mailing list