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=5919>.
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=5919

Bad logic in several share/conf/ torque/templates/sql/base/*/table.vm files

           Summary: Bad logic in several share/conf/
                    torque/templates/sql/base/*/table.vm files
           Product: Turbine
           Version: 2.1 final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Torque
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Several of the vm files that are used in initialization builds have similar bad 
logic, for example, torque/templaets/sql/base/mssql/table.vm has the following 
line of code:

  #if($unique.length()>0)$strings.chop($unique,2)#end

Unfortunately, if the string has a length of one, which happened in my case, 
the chop function throws an ArrayOutOfBoundsException. The logic should 
probably check for length greater than one.

Another fix should be to make the chop function in StringUtils.java more 
robust. It shouldn't throw an exception in this case; that is, it should check 
if the string is long enough to delete the number of characters requested.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to