commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <mouawad_phili...@yahoo.fr>
Subject [PATCH] digester XML (call-param-rule)
Date Mon, 07 Oct 2002 08:03:40 GMT
I found a bug in the digester.
It happens when you use the rules written in xml
instead of writing them in the code (see code below).
The bug happens when you use "<call-param-rule />" in
the xml file.

try
{
FileInputStream fis = new
FileInputStream(configFileName);
// the file "config-rules.xml" contains rules written 
//in xml
URL url = getClass().getResource("config-rules.xml");
BatchContext config =  (BatchContext) 
DigesterLoader.load(url, getClass().getClassLoader(),
fis, this);
fis.close();
}
catch(DigesterLoadingException dle)
{
throw new BatchException(dle);   
}
catch (SAXException ioe)
{
ioe.printStackTrace();
throw new BatchException(ioe);
}
catch (IOException ioe)
{
throw new BatchException(ioe);
}
 


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran├žais !
Yahoo! Mail : http://fr.mail.yahoo.com
Mime
View raw message