Claus Ibsen created CAMEL-27831:
-----------------------------------

             Summary: camel-jcache: INVOKE passes the arguments as one 
Collection, lookupProviders has no effect
                 Key: CAMEL-27831
                 URL: https://issues.apache.org/jira/browse/CAMEL-27831
             Project: Camel
          Issue Type: Bug
          Components: camel-jcache
            Reporter: Claus Ibsen
             Fix For: 4.25.0


Found while improving the option descriptions of camel-jcache for CAMEL-23832 
(pull request https://github.com/apache/camel/pull/31141).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. INVOKE passes the arguments as one Collection
{{JCacheProducer}} action INVOKE passes the CamelJCacheEntryArgs Collection as 
is to the varargs Cache.invoke(key, processor, Object... arguments) and 
Cache.invokeAll; Java wraps it into new Object[]{collection}, so the 
EntryProcessor gets the Collection as its only argument. No test covers it.
Proposed change: pass arguments.toArray().

h4. 2. lookupProviders has no effect
Nothing reads {{JCacheConfiguration.lookupProviders}}.
Proposed change: deprecate it.


_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to