Open oalekseev opened 4 years ago
this is a fix changes
freemarker.introspection.StringExpr
freemarker.introspection.StringLiteralExpr
freemarker.introspection.variables.VariableFinder (method void visit(Expr expr))
And test for template "'some text ${foo1} some text ${foo2} some text'" freemarker.introspection.ExprParamsTests And add import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
for templates like this "'some text ${foo1} some text ${foo2} some text'"
java.lang.ClassCastException: java.lang.String cannot be cast to freemarker.core.TemplateElement