[infinispan-dev] CS API still needs more polishing?

Mircea Markus mmarkus at redhat.com
Mon Oct 28 15:19:49 EDT 2013


resurrecting this: https://issues.jboss.org/browse/ISPN-3667

On Sep 18, 2013, at 1:36 PM, Manik Surtani <msurtani at redhat.com> wrote:

> 
> On 17 Sep 2013, at 16:46, Galder Zamarreño <galder at redhat.com> wrote:
> 
>> Hi,
>> 
>> Doing this throws a warning due to unchecked assignment:
>> 
>> ExternalStore<Integer, String> boundedStore = new SingleFileStore();
>> 
>> Granted, the users won't be doing this, but should all cache stores use generics properly? At the end of the day, implementations such as SingleFileStore are what cache store developers are gonna be looking at to get inspiration of how to write cache stores.
>> 
>> I'm aware that some of the internals assume Object keys and values, and there will be a point where an unchecked cast will need to be done, but this should happen within the internals of our cache implementation. 
> 
> Yup.
> 
>> 
>> Cache store implementations should use generics properly.
> 
> +1
> 
>> 
>> Cheers,
>> 
>> p.s. Or maybe we should move to language were generics are properly enforced ;)
> 
> .NET?  ;)
> 
> --
> Manik Surtani
> 
> 
> 
> 
> _______________________________________________
> 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