Cache.get(Object key, Class<T> type) should be more explicit about what to do in case of a type mismatch [SPR-12145] #16759
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Oliver Drotbohm opened SPR-12145 and commented
The indicated method is pretty clear about the expected behavior for a variety of cases except a value being found with a non matching type. Implementations consistently throw
IllegalStateException
so it might be worthwhile to make this the official exception to be thrown in that case.Affects: 4.0.6
Referenced from: commits 72d62a7, 2f93759
Backported to: 4.0.7
The text was updated successfully, but these errors were encountered: