We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd27242 commit 2392524Copy full SHA for 2392524
src/main/java/org/cyclopsgroup/jmxterm/jdk9/Jdk9JavaProcess.java
@@ -49,7 +49,7 @@ public void startManagementAgent() throws IOException {
49
Object vm = staticVirtualMachine.attach(vmd.id());
50
try {
51
Class<?> originalVirtualMachine = Class.forName(VirtualMachine.ORIGINAL_CLASS_NAME);
52
- VirtualMachine vmProxy = WeakCastUtils.cast(originalVirtualMachine, VirtualMachine.class);
+ VirtualMachine vmProxy = WeakCastUtils.cast(originalVirtualMachine, vm, VirtualMachine.class);
53
vmProxy.startLocalManagementAgent();
54
} catch (ClassNotFoundException | SecurityException | NoSuchMethodException e) {
55
throw new RuntimeException("Can't cast " + vm + " to VirtualMachineDescriptor", e);
0 commit comments