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=5624>. 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=5624 Postgresql template typo causes ArrayIndexOutOfBounds on generation Summary: Postgresql template typo causes ArrayIndexOutOfBounds on generation Product: Turbine Version: 2.1 final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Torque AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Unzipped the torque-2.1 archive, attempted to run the default example "project". Velocity reported an ArrayIndexOutOfBounds exception from sql\base\postgresql\table.vm [17,25]. Line 17 follows: #if($index.length() > 0)$strings.chop($index,1)#end Investigated problem. Turns out that given the templates in the 2.1 release, ($index.length() > 0) is always true. Source of the problem is trailing whitespace at the end of sql\base\postgres\index.vm. Removing the linefeed resolved the problem. Checked cvs - the problem exists in version 1.4 of index.vm as of this date. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
