[
https://issues.apache.org/jira/browse/VELOCITY-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henning Schmiedehausen closed VELOCITY-74.
------------------------------------------
> DateTool.getDate( ) calls itself...
> -----------------------------------
>
> Key: VELOCITY-74
> URL: https://issues.apache.org/jira/browse/VELOCITY-74
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.3-rc1
> Environment: Operating System: other
> Platform: Other
> Reporter: Claude Brisson
> Assigned To: Velocity-Dev List
>
> DateTool.getDate() calls getDate() instead of new Date(), generating a
> StackOverflowError...obviously a typo... The patch follows.
> diff -ur jakarta-velocity-
> tools/tools/src/java/org/apache/velocity/tools/tools/DateTool.java patched-
> tools/tools/src/java/org/apache/velocity/tools/tools/DateTool.java
> --- jakarta-velocity-
> tools/tools/src/java/org/apache/velocity/tools/tools/DateTool.java Mon Apr 15
> 20:30:28 2002
> +++
> patched-tools/tools/src/java/org/apache/velocity/tools/tools/DateTool.java
> Tue May 7 01:57:57 2002
> @@ -99,7 +99,7 @@
> */
> public static Date getDate()
> {
> - return getDate();
> + return new Date();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]