freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <>
Subject [jira] [Commented] (FREEMARKER-94) a little bug with freemarker
Date Wed, 18 Apr 2018 18:48:00 GMT


Daniel Dekany commented on FREEMARKER-94:

This depends on what {{ObjectWrapper}} is used in the {{Configuration}} (and what the root
object is, and in your case it's a `HashMap`). Fortunately, the default {{ObjectWrapper}}
doesn't do such thing. A pure {{BeansWrapper}} with {{simpleMapWrapper}} set to {{false}}
does (because `getClass()` defines a JavaBean property according the JavaBeans Spec.), but
that's not a recommended setup.

> a little bug with freemarker 
> -----------------------------
>                 Key: FREEMARKER-94
>                 URL:
>             Project: Apache Freemarker
>          Issue Type: Bug
>            Reporter: flash866
>            Priority: Major
> When the output variable name is “class” (like this:  ${class}),It will always
output "class java.util.HashMap"

This message was sent by Atlassian JIRA

View raw message