freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <>
Subject [jira] [Commented] (FREEMARKER-53) Element order not preserved with java.util.Stack
Date Sat, 03 Jun 2017 13:23:04 GMT


Daniel Dekany commented on FREEMARKER-53:

But the Java iteration order of {{Stack}} is first-in-first-out too. You only get  last-in-first-out
in Java if you call {{pop()}}. Am I missing something?

> Element order not preserved with java.util.Stack
> ------------------------------------------------
>                 Key: FREEMARKER-53
>                 URL:
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 2.3.23
>            Reporter: Man J
>            Priority: Minor
> A field inside one of my model objects is of the type {{java.util.Stack}}. Java code
iterates over the elements of this field correctly to yield objects in last-in-first-out order.
However, Freemarker iterates over its elements in first-in-first-out order like a regular

This message was sent by Atlassian JIRA

View raw message