Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-debug-dev] Question regarding JDIDebugTarget constructor.

Hi!

While going through
org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget code, I
realized that its constructor requires you to pass both the launch and
the process as parameters:

public JDIDebugTarget(ILaunch launch, VirtualMachine jvm, String name,
boolean supportTerminate, boolean supportDisconnect, IProcess process,
boolean resume)

Why do I have to pass both? Would there be any issues if I used
process.getLaunch() instead?

Thanks in advance,

--
Giuliano Mega <giuliano@xxxxxxxxxx>


Back to the top