Amar Gurung created FREEMARKER-106:
--------------------------------------

             Summary: Unable to parse variable containing special char ${# with 
freemarker.template.Template.process(object,writer)
                 Key: FREEMARKER-106
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-106
             Project: Apache Freemarker
          Issue Type: Bug
          Components: engine
    Affects Versions: 2.3.23
            Reporter: Amar Gurung


Unable to parse variable containing ${# e.g ${#marker_files[@]} or ${#array[@]}

Sample snippet:

-----------------------------

Configuration cfg = new Configuration(Configuration.VERSION_2_3_28);
 cfg.setLogTemplateExceptions(false);
 cfg.setClassForTemplateLoading(FtlExpressionEvaluator.class, "templates");
 cfg.setDefaultEncoding("UTF-8");
 cfg.setLocale(Locale.US);
 cfg.setTemplateExceptionHandler(TemplateExceptionHandler.IGNORE_HANDLER);
 cfg.setNumberFormat("0.######");

Template t = new Template("freeMarkerTemplate", new StringReader(line), cfg);

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to