Removed the reflection code, replaced by a cast to ProcessCall (thanks to Hengsin for the hint!)
This commit is contained in:
parent
3fedaf474b
commit
5a764a02a3
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue