Skip to content

Commit

Permalink
fix(*): fixing dispatching of indexed parameter req
Browse files Browse the repository at this point in the history
  • Loading branch information
notthetup committed Aug 29, 2024
1 parent 0c47203 commit b1dd5de
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,14 @@ private Object invokeCompatibleSetter(String name, int ndx, Object value) throws
NoSuchMethodException nsme = null;
try {
return MethodUtils.invokeMethod(agent, name, ndx, value);
} catch (NoSuchMethodException ex) {
nsme = ex;
} catch (NoSuchMethodException ignored) {
try {
return MethodUtils.invokeMethod(agent, name, Integer.valueOf(ndx), value);
} catch (NoSuchMethodException ex) {
nsme = ex;
}
}

if (value instanceof Number) {
Number nvalue = (Number) value;
try {
Expand Down

0 comments on commit b1dd5de

Please sign in to comment.