[
https://issues.apache.org/jira/browse/CAMEL-21864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935068#comment-17935068
]
Claus Ibsen commented on CAMEL-21864:
-------------------------------------
No there can be some situations where its just a bit too open ended and complex
- use a processor / bean and write normal java code
> Ambiguous method invocations possible:-public static int
> java.lang.Math.multiplyExact(int,int)
> ----------------------------------------------------------------------------------------------
>
> Key: CAMEL-21864
> URL: https://issues.apache.org/jira/browse/CAMEL-21864
> Project: Camel
> Issue Type: Bug
> Components: came-core
> Reporter: Senthil
> Priority: Minor
>
> ${bean:type:java.lang.Math::multiplyExact(${bean:type:java.lang.Integer::parseInt(${exchangeProperty.num1})},
> ${bean:type:java.lang.Integer::parseInt(${exchangeProperty.num2})})}
> I am trying to simple arithmetic operation, is there a way to perform,
> Caused by: org.apache.camel.component.bean.AmbiguousMethodCallException:
> Ambiguous method invocations possible:
> Class: java.lang.Math
> public static int java.lang.Math.multiplyExact(int,int)
> public static long java.lang.Math.multiplyExact(long,long)
> public static long java.lang.Math.multiplyExact(long,int)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)