commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Pitts (JIRA)" <>
Subject [jira] [Commented] (OGNL-22) Change the generics signature of ClassCache and ClassCacheImpl.
Date Mon, 19 Sep 2011 00:10:09 GMT


Daniel Pitts commented on OGNL-22:

By "Alternative to this" I mean implementing OGNL-20 for these caches. 

> Change the generics signature of ClassCache and ClassCacheImpl.
> ---------------------------------------------------------------
>                 Key: OGNL-22
>                 URL:
>             Project: OGNL
>          Issue Type: Improvement
>            Reporter: Daniel Pitts
> Right now, ClassCache and ClassCacheImpl use some generics, but they do casting at the
method level, which leads to possible ClassCastException, and doesn't quite support safe static
> I'll be glad to provide a patch when I have some time.  I'd like to have OGNL-21 resolved
first, as it reduces the amount of code I'd have to touch to implement this change.
> The proposed signatures would be interface ClassCache<V> and class ClassCacheImpl<V>
implements ClassCache<V>
> Changing the get/put methods to take and return "V" type objects.
> Alternative to this is to replace all of them with a "ConcurrentMap<Class<?>,

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message