Skip to content

Commit

Permalink
Merge pull request #1006 from ravinperera00/java21_sync
Browse files Browse the repository at this point in the history
Improve callMethod logic
  • Loading branch information
warunalakshitha authored Nov 25, 2024
2 parents 464a6bb + 2192f56 commit 5e85c58
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,8 @@ private boolean isMessageType(Parameter parameter, BMap<BString, Object> annotat

private boolean invokeIsAnydataMessageTypeMethod(Type paramType) {
BObject client = ValueCreator.createObjectValue(ModuleUtils.getModule(), TYPE_CHECKER_OBJECT_NAME);
StrandMetadata strandMetadata = new StrandMetadata(true, getProperties(IS_ANYDATA_MESSAGE));
try {
return (boolean) runtime.callMethod(client, IS_ANYDATA_MESSAGE, strandMetadata,
return (boolean) runtime.callMethod(client, IS_ANYDATA_MESSAGE, null,
ValueCreator.createTypedescValue(paramType));
} catch (BError bError) {
bError.printStackTrace();
Expand Down

0 comments on commit 5e85c58

Please sign in to comment.