Skip to content

Commit be1e36b

Browse files
authored
Backport: fix varargs (i.e. <n+:n>) signature validation (#319)
Using <n+:n> signature, validate will return the first arg n times. As we're based on this impl the fix should be backported Original fix here: dashjoin/jsonata-java@3849b71 Test case: dashjoin/jsonata-java@abf12e9
1 parent fa18172 commit be1e36b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/api/jsonata4java/Signature.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ ArrayNode validate(String functionName, ExprListContext args, ExpressionsVisitor
383383
validatedArgs.add(arg);
384384
argIndex++;
385385
} else {
386+
arg = expressionVisitor.visit(args.expr(argIndex));
386387
validatedArgs.add(arg);
387388
argIndex++;
388389
}

0 commit comments

Comments
 (0)