Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8519

?floor, ?ceiling and ?round are not recognized by FreeMarker IDE

XMLWordPrintable

    • In previous versions of JBoss Developer Studio the functions ?floor, ?ceiling and ?round caused parse errors. This issue has been fixed by updating the Freemarker runtime to version 2.3.18, which corrects this issue.
    • Documented as Resolved Issue

      Sample code:

      [#ftl]
      [#assign testlist=[0, 1, -1, 0.5, 1.5, -0.5, -1.5, 0.25, -0.25, 1.75, -1.75] /]
      [#list testlist as result]
      ${result} ?floor=${result?floor}
      ${result} ?ceiling=${result?ceiling}
      ${result} ?round=${result?round}
      [/#list]

      is causing parse errors in eclipse, because plugin is using freemarker 2.3.8. These functions are in Freemarker from version 2.3.13 (http://freemarker.sourceforge.net/docs/ref_builtins_number.html#ref_builtin_rounding).

      I have tried to add new freemarker library to plugin directory and change Bundle-ClassPath in META-INF/MANIFEST.MF, but it didn't work.

            nivologd@gmail.com Denis Golovin (Inactive)
            rafal.piotrowski_jira Rafal Piotrowski (Inactive)
            Isaac Rooskov Isaac Rooskov (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: