freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yanming Zhou (JIRA)" <>
Subject [jira] [Commented] (FREEMARKER-87) <#list map as key,value> should always iterating on map entries
Date Fri, 19 Jan 2018 01:28:01 GMT


Yanming Zhou commented on FREEMARKER-87:

I do not mind to break backward compatibility, and I am using latest version, any suggestion
to make workaround to pass my test? It's OK freemarker to keep clean itself, I will apply
it to my own code.

> <#list map as key,value> should always iterating on map entries
> ---------------------------------------------------------------
>                 Key: FREEMARKER-87
>                 URL:
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 2.3.27-incubating
>            Reporter: Yanming Zhou
>            Priority: Major
>         Attachments:
> I'm using struts2, use FriendlyMapModel instead of default MapModel, It works fine except
map have key such as "size", the value will be unexpected SimpleMethodModel, I think freemarker
should always use entry value for directive <#list map as key,value>, not matter how MapModel
works, MapModel should only affect map.size and map.get('size').
> I attached a test case.

This message was sent by Atlassian JIRA

View raw message