Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache.get(Object key, Class<T> type) should be more explicit about what to do in case of a type mismatch [SPR-12145] #16759

spring-projects-issues opened this issue Sep 3, 2014 · 0 comments
in: core status: backported type: enhancement


Copy link

@spring-projects-issues spring-projects-issues commented Sep 3, 2014

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

@spring-projects-issues spring-projects-issues added status: backported type: enhancement in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.1 GA milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: core status: backported type: enhancement
None yet

No branches or pull requests

2 participants