Skip to content

Commit ab5086c

Browse files
committed
fix: get a function from a class that is passed as a call attribute
1 parent 78ce14c commit ab5086c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/dashjoin/jsonata/Functions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,7 +2142,7 @@ public static String test(String a, String b) {
21422142
}
21432143

21442144
public static Method getFunction(Class clz, String name) {
2145-
Method[] methods = Functions.class.getMethods();
2145+
Method[] methods = clz.getMethods();
21462146
for (Method m : methods) {
21472147
// if (m.getModifiers() == (Modifier.STATIC | Modifier.PUBLIC) ) {
21482148
// System.out.println(m.getName());

0 commit comments

Comments
 (0)