OMG
On Mon, Jul 1, 2019, 7:19 AM Franz van Betteraey (JIRA) <[email protected]> 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) >
