freemarker-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wood Chuck <woodchuckw...@gmail.com>
Subject Re: [jira] [Created] (FREEMARKER-116) missmatch between example code and explanation in BeansWrapper documentation
Date Mon, 01 Jul 2019 16:44:05 GMT
OMG


On Mon, Jul 1, 2019, 7:19 AM Franz van Betteraey (JIRA) <jira@apache.org>
wrote:

> Franz van Betteraey created FREEMARKER-116:
> ----------------------------------------------
>
>              Summary: missmatch between example code and explanation in
> BeansWrapper documentation
>                  Key: FREEMARKER-116
>                  URL: https://issues.apache.org/jira/browse/FREEMARKER-116
>              Project: Apache Freemarker
>           Issue Type: Bug
>           Components: documentation
>     Affects Versions: 2.3.28
>             Reporter: Franz van Betteraey
>
>
> The Bean Wrapper "[accessing static methods|
> https://freemarker.apache.org/docs/pgui_misc_beanwrapper.html#autoid_60]"
> documentation has a little code example which uses *java.io.File* as
> example class:
> {code:java}
> BeansWrapper wrapper = BeansWrapper.getDefaultInstance();
>  TemplateHashModel staticModels = wrapper.getStaticModels();
>  TemplateHashModel fileStatics =
>  (TemplateHashModel) staticModels.get("java.io.File");{code}
> The explanation paragraph below speaks about *java.lang.System*:
> {code:java}
> And you will get a template hash model that exposes all static methods and
> static fields (both final and non-final) of the java.lang.System class as
> hash keys.{code}
> That is probably wrong and should also be *java.io.File*.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message