[
https://issues.jboss.org/browse/JBIDE-23705?page=com.atlassian.jira.plugi...
]
Denis Golovin commented on JBIDE-23705:
---------------------------------------
I cannot really say anything, because my knowledge of freemarker is really not that deep.
What I see in PR it drops java bean introspection and re-implements reflection based
introspection. I'd rather like to see PR using the introspection utils from freemarker
itself or apache commons beanutils BeanUtilBean with custom Introspector registered to
tackle InterfaceBased beans introspection problems.
no content assist in freemarker templates for interface-based beans
-------------------------------------------------------------------
Key: JBIDE-23705
URL:
https://issues.jboss.org/browse/JBIDE-23705
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: freemarker
Reporter: Ronald Müller
If your beans in freemarker templates are described by an interface, the code completion
(content assist) will not work.
There two mechanism implemented to provide content suggestion:
# Bean-Introspection: this doesn't work for interfaces
# Java Reflections: there are bugs which prevent any suggestions
My suggestion: use only reflections - it will work for both and isn't that harder to
implement.
I'm working on a pull request for fixing this issue.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)