Open dzlab opened 10 years ago
Well, I guess the NPE isn't the best option. But as the spec says (from the MutableConfiguration#setReadThrough
Javadoc):
* Set if read-through caching should be used.
* <p>
* It is an invalid configuration to set this to true without specifying a
* {@link CacheLoader} {@link Factory}.
I guess the method you use to create the Cache
should probably throw IllegalArgumentException
(see CacheManager.createCache
indeed. I'll fix that!
Ugh! Looks like fixing this may be an issue... See the build for my PR #33 See https://github.com/jsr107/jsr107tck/issues/59
Closed the initial PR and created a new one (PR #33) from my own fork this time... Still pending https://github.com/jsr107/jsr107tck/issues/59 being fixed though!
Leaving this as targeted to 1.0.1
until the end of the week, if the EG on @jsr107 doesn't address https://github.com/jsr107/jsr107tck/issues/59 by then, I'll have no other choice than postpone to 1.0.2
Post-poning, as it looks we won't be able to have the TCK fixed in time
Things have been changed around that in the TCK... Need to check if we need to upgrade to a newer version. And then let's fix this.
I'm having the following exception when I read an entry that doesn't exist in the cache while I'm expecting a
null
. Do I have to provide a factory for the cache loader when I create the cache? currently I'm not.Here is my configuration:
It looks like when readTrough is set to
true
then a cache loader should be provided.