This is my first mail to the list so if i'm wrong or/and if this is not the
way to post patches, sorry...

Problem:
  DependSet target crashes when sourcefileset or sourcefilelist is empty.

Reason:
  A 'do {} while' loop (lines 239 and 274) is executed in
org.apache.tools.ant.taskdefs.DependSet even if the String table is empty
causing an IndexOutofBoundException exception.

Solution:
  A 'if (sourcesFiles.length > 0)' statement was added before the 2 'do {}
while' loops (lines 239 and 275 in the new source)

Here is the correction for DependSet.java


========================================================================= 
Ce message et toutes les pi�ces jointes sont propri�t� de VALTECH et 
susceptibles de contenir des informations confidentielles � l'intention 
exclusive de ses destinataires. Si vous avez re�u ce message par erreur 
ou si celui ci vous est parvenu incomplet ou alt�r�, merci d'en avertir 
l'exp�diteur par retour.Toute utilisation, diffusion ou publication non 
express�ment autoris�e par nous par �crit est strictement interdite. 
 -------------------------------------------------------------------------- 
This message and any attachments are Valtech property and may contain 
iconfidential information intended solely for the addressees. If your are 
not the intended recipient of this message or if you have received it 
uncomplete or altered, please notify the author by replying to his e-mail 
immediately. Any unauthorised use, diffusion or dissemination not 
expressly authorised by us in writing is strictly prohibited. 
========================================================================= 
Copyright Valtech 2002 


  

<<attachment: DependSet.zip>>

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

Reply via email to