get wrong process when call startJavaProcess.ProcessUtil

Description

i try this code to call a process

has two problem

1. bellow logic in startJavaProcess don't let me get process. because className = null

it can fix by modify code as bellow

2. by 1. i can't get my process, but at that case, i always get org.adempiere.pipo2.PackOutProcess.
reason:
at function DefaultProcessFactory.newProcessInstance call
process = EquinoxExtensionLocator.instance().locate(ProcessCall.class, "org.adempiere.base.Process", className, null).getExtension();
with className = null it will return all process extension, and PackOutProcess is first one.

solution:
i don't see any place need all extension so. when className, it should return empty list.
if we need "all extension", make a clear method for it.
wdyt ?

Environment

None

Assignee

Unassigned

Reporter

Hiep Lq

Labels

Tested By

None

Components

Affects versions

Priority

Major
Configure