[ 
https://issues.apache.org/jira/browse/CAMEL-27831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27831:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-jcache for CAMEL-23832 
(commit 
https://github.com/apache/camel/commit/ed21c0d35408d9c8fd340e12eb3bac97d585474f,
 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_

  was:
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_


> 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
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-jcache for CAMEL-23832 
> (commit 
> https://github.com/apache/camel/commit/ed21c0d35408d9c8fd340e12eb3bac97d585474f,
>  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