Open ghost opened 6 years ago
I'm experiencing the same behavior with 2.4.0. How can I help to resolve this ?
For more detail, you can have a look at my test there: https://github.com/mborgraeve/json-path-cache-concat-issue Class here: https://github.com/mborgraeve/json-path-cache-concat-issue/blob/main/src/test/java/mborgraeve/samples/jsonpathcacheconcat/JsonPathCacheConcatApplicationTests.java
I tried to run JsonPath.read(jsonPathObject, "concat($.intervalMeasure.['date', 'time'])", new Predicate[0]);
with two different jsonPathObject
(that are actually LinkedHashMap
s). I expect two different result, but the method returns the same result each time.
It looks like the same as #234.
Hi @mborgraeve ,
From what I remember about the issue after 2 years, you can try to disable the global cache to prevent this :
CacheProvider.setCache(new NOOPCache());
I hope it will help !
It does work with this configuration, thanks a lot !
Hello,
My issue is related to the issue #234. It is working with the issue's example, but if I use the concat method on two different objet (there, the context input was the same for both call for the method), the cache will give me the first answer for the second call :
Thank you