velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8845] New: - DateTool.getDate( ) calls itself...
Date Tue, 07 May 2002 00:17:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8845>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8845

DateTool.getDate( ) calls itself...

           Summary: DateTool.getDate( ) calls itself...
           Product: Velocity
           Version: 1.3-rc1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Source
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: claude@savoirweb.com


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();
     }

--
To unsubscribe, e-mail:   <mailto:velocity-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@jakarta.apache.org>


Mime
View raw message