CloneSet1573


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.997statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114167
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketLaunchingConnectorImpl.java
214123
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketRawLaunchingConnectorImpl.java
Clone Instance
1
Line Count
14
Source Line
167
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketLaunchingConnectorImpl.java

                // Start VM.
                Process proc = Runtime.getRuntime().exec(execString);

                // The accept times out if the VM does not connect.
                VirtualMachineImpl virtualMachine;
                try {
                        virtualMachine = (VirtualMachineImpl) listenConnector.accept(args);
                } catch (InterruptedIOException e) {
                        proc.destroy();
                        String message = MessageFormat.format(ConnectMessages.SocketLaunchingConnectorImpl_VM_did_not_connect_within_given_time___0__ms_1, new String[] {
                                                                                                                                                                         ((Connector.IntegerArgument) args.get("timeout")).value()
                                                                                                                                                                        } );                                                       //$NON-NLS-1$ 
                        throw new VMStartException(message, proc);
                  }
                virtualMachine.setLaunchedProcess(proc);
                return virtualMachine;


Clone Instance
2
Line Count
14
Source Line
123
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketRawLaunchingConnectorImpl.java

                // Start VM.
                Process proc = Runtime.getRuntime().exec(fCommand);

                // The accept times out it the VM does not connect.
                VirtualMachineImpl virtualMachine;
                try {
                        virtualMachine = (VirtualMachineImpl) listenConnector.accept(args);
                } catch (InterruptedIOException e) {
                        proc.destroy();
                        String message = MessageFormat.format(ConnectMessages.SocketLaunchingConnectorImpl_VM_did_not_connect_within_given_time___0__ms_1, new String[] {
                                                                                                                                                                         ((Connector.IntegerArgument) args.get("timeout")).value()
                                                                                                                                                                        } );                                                       //$NON-NLS-1$ 
                        throw new VMStartException(message, proc);
                  }
                virtualMachine.setLaunchedProcess(proc);
                return virtualMachine;


Clone AbstractionParameter Count: 1Parameter Bindings

// Start VM.
Process proc = Runtime.getRuntime().exec( [[#variable9c69c860]]);
// The accept times out it the VM does not connect.
// The accept times out if the VM does not connect.
VirtualMachineImpl virtualMachine;
try {
  virtualMachine = (VirtualMachineImpl) listenConnector.accept(args);
}
catch (InterruptedIOException e) {
  proc.destroy();
  String message = MessageFormat.format(ConnectMessages.SocketLaunchingConnectorImpl_VM_did_not_connect_within_given_time___0__ms_1, new String[] {
                                                                                                                                                    ((Connector.IntegerArgument) args.get("timeout")).value()
                                                                                                                                                  } ); //$NON-NLS-1$ 
  throw new VMStartException(message, proc);
}
virtualMachine.setLaunchedProcess(proc);
return virtualMachine;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9c69c860]]
fCommand 
12[[#9c69c860]]
execString