Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/java/com/hubspot/jinjava/el/ext/BeanELResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public Object getValue(ELContext context, Object base, Object property) {
}
Object result = null;
if (isResolvable(base)) {
Method method = toBeanProperty(base, property).getReadMethod();
Method method = getReadMethod(base, property);
if (method == null) {
throw new PropertyNotFoundException("Cannot read property " + property);
}
Expand Down Expand Up @@ -649,6 +649,10 @@ protected Object[] coerceParams(
return args;
}

protected Method getReadMethod(Object base, Object property) {
return toBeanProperty(base, property).getReadMethod();
}

private void coerceValue(
Object array,
int index,
Expand Down