freemarker-notifications mailing list archives

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

    [ 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)

Mime
View raw message