The method sun.tools.attach.HotSpotVirtualMachine.executeCommand() has a varargs argument 'Object ... args'. Elements of this varargs array can also be null. The HotSpotVirtualMachine implementations on most platforms are capable of handling null arguments and passing these to the attach listener. However, the native implementation of Solaris' sun.tools.attach.VirtualMachineImpl ignores null arguments. This can lead to an undesired argument shift.