[ 
https://issues.apache.org/jira/browse/FREEMARKER-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443027#comment-16443027
 ] 

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: https://issues.apache.org/jira/browse/FREEMARKER-94
>             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
(v7.6.3#76005)

Reply via email to