Skip to content

Commit

Permalink
Merge pull request #106 from M-Razavi/master
Browse files Browse the repository at this point in the history
Fix a bug to retrieve java collection type such as (user.roles)
  • Loading branch information
killme2008 committed Jan 23, 2019
2 parents f0ab328 + 31787f9 commit 6a99ae6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static Object getJavaObject(AviatorObject arg, Map<String, Object> env) {
if (arg.getAviatorType() != AviatorType.JavaType) {
throw new ExpressionRuntimeException(arg.desc(env) + " is not a javaType");
}
return env.get(((AviatorJavaType) arg).getName());
return ((AviatorJavaType) arg).getValue(env);
}


Expand Down

0 comments on commit 6a99ae6

Please sign in to comment.