Removed the reflection code, replaced by a cast to ProcessCall (thanks to Hengsin for the hint!)

This commit is contained in:
deathmeat 2007-06-13 16:56:13 +00:00
parent 3fedaf474b
commit 5a764a02a3
1 changed files with 1 additions and 12 deletions

View File

@ -78,18 +78,7 @@ public final class ProcessUtil {
ProcessCall process = null;
try
{
if(processClass.getName().equals("org.compiere.report.ReportStarter"))
{
Class clazz = Class.forName("org.compiere.report.ReportStarter");
Object processObj = processClass.newInstance();
process = (ProcessCall)clazz.cast(processObj);
}
else
{
Class clazz = Class.forName("org.compiere.process.SvrProcess");
Object processObj = processClass.newInstance();
process = (ProcessCall)clazz.cast(processObj);
}
process = (ProcessCall)processClass.newInstance();
}
catch (Exception ex)
{