[
https://issues.apache.org/jira/browse/OFBIZ-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146384#comment-13146384
]
Adrian Crum commented on OFBIZ-4545:
------------------------------------
That is precisely what I have been referring to. Freemarker = client code. The
client code should pass valid arguments to the method. If there is a chance
myGenericValue.date can be null, then the template needs to resolve it before
calling the method.
The problem with low-level code accepting invalid arguments and returning
arbitrary values is that there is no way of knowing if you've done something
wrong when calling the method. Worse yet, everyone has a different opinion on
what the default returned value should be - so you end up with a complicated
and convoluted API.
> DateFormat API extension
> ------------------------
>
> Key: OFBIZ-4545
> URL: https://issues.apache.org/jira/browse/OFBIZ-4545
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Dimitri Unruh
> Priority: Minor
> Attachments: OFBIZ-4545.patch, OFBIZ-4545.patch, OFBIZ-4545.patch
>
>
> Some API extensions for Dateformating
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira