-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Support for typed caches with EhCache 3.0 [SPR-14384] #18957
Comments
Stéphane Nicoll commented
|
Sebastian Audet commented Yup, probably won't share till later this evening though, @ work atm. |
Stéphane Nicoll commented Sebastian Audet please update the description with your configuration, your method annotation and the stacktrace. Obviously, a sample that reproduces the issue would be much better. |
Louis Jacomet commented I believe your issue comes from multiple factors:
Given all of that, when using Ehcache 3 with the Spring Cache / JCache support, you must use untyped caches and there is not much Spring could do to improve the situation. |
Stéphane Nicoll commented Sebastian Audet some feedback on why you've created this issue in the first place would be very helpful. |
Stéphane Nicoll commented Given the lack of answer, I am flagging this one as pending for closure. I'll make sure to update the doc about typed cache in any case. |
Sebastian Audet opened SPR-14384 and commented
There is incomplete support for the EhCache JCache solution.
If you create a CacheManager with typed key/value pairs (pass in the key class and the value class), the spring JCacheManager will fail to instantiate this cache.
The solution is to add support for a custom class map for value pairs.
I have a working patch, will submit for review later.
Affects: 4.3 GA
Issue Links:
The text was updated successfully, but these errors were encountered: