Skip to content

Commit 0b40af3

Browse files
authored
Merge pull request #84 from sergeevik/fix/Functions_getFunction
fix: get a function from a class that is passed as a call attribute
2 parents 10c3f2c + ab5086c commit 0b40af3

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)