Cache.get(key, type) explicitly defines an IllegalStateException in case of a type mismatch

Issue: SPR-12145
(cherry picked from commit 2f93759)
This commit is contained in:
Juergen Hoeller
2014-09-03 13:00:20 +02:00
parent e1a01d4c3c
commit 72d62a7113

View File

@@ -66,6 +66,8 @@ public interface Cache {
* @return the value to which this cache maps the specified key
* (which may be {@code null} itself), or also {@code null} if
* the cache contains no mapping for this key
* @throws IllegalStateException if a cache entry has been found
* but failed to match the specified type
* @see #get(Object)
* @since 4.0
*/