7028668: 3/4 improve diagnosibility and robustness of sun.tools.attach.WindowsVirtualMachine.openProcess()

Add more info to OpenProcess default detail error message. Try a different technique when a Java process is attaching to itself.

Reviewed-by: zgu, ohair, alanb
1 file changed