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;
|
ProcessCall process = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if(processClass.getName().equals("org.compiere.report.ReportStarter"))
|
process = (ProcessCall)processClass.newInstance();
|
||||||
{
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue