1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

[240037] [dstore][launcher] NumberFormatException printed to stdout when invalid rexec port is given in new connection wizard

This commit is contained in:
David McKnight 2008-07-08 18:18:57 +00:00
parent 7f0b8e06e2
commit 9d586d07dd

View file

@ -16,6 +16,7 @@
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType * Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType * Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
* David McKnight (IBM) - [224671] [api] org.eclipse.rse.core API leaks non-API types * David McKnight (IBM) - [224671] [api] org.eclipse.rse.core API leaks non-API types
* David McKnight (IBM) - [240037] [dstore][launcher] NumberFormatException printed to stdout when invalid rexec port is given in new connection wizard
*******************************************************************************/ *******************************************************************************/
package org.eclipse.rse.core.subsystems; package org.eclipse.rse.core.subsystems;
@ -157,7 +158,12 @@ public class RemoteServerLauncher extends ServerLauncher implements IRemoteServe
daemonPortProperty.setEnabled(daemon); daemonPortProperty.setEnabled(daemon);
daemonPortProperty.setLabel(RSECoreMessages.RESID_CONNECTION_DAEMON_PORT_LABEL); daemonPortProperty.setLabel(RSECoreMessages.RESID_CONNECTION_DAEMON_PORT_LABEL);
_daemonPort = Integer.parseInt(daemonPortProperty.getValue()); try {
_daemonPort = Integer.parseInt(daemonPortProperty.getValue());
}
catch (Exception e){
_daemonPort = DAEMON_PORT_EDEFAULT;
}
IProperty autoDetectProperty = set.getProperty(KEY_AUTODETECT_SSL); IProperty autoDetectProperty = set.getProperty(KEY_AUTODETECT_SSL);
if (autoDetectProperty != null) if (autoDetectProperty != null)
@ -174,7 +180,12 @@ public class RemoteServerLauncher extends ServerLauncher implements IRemoteServe
rexecPortProperty.setEnabled(usingRexec); rexecPortProperty.setEnabled(usingRexec);
rexecPortProperty.setLabel(RSECoreMessages.RESID_CONNECTION_PORT_LABEL); rexecPortProperty.setLabel(RSECoreMessages.RESID_CONNECTION_PORT_LABEL);
_rexecPort = Integer.parseInt(rexecPortProperty.getValue()); try {
_rexecPort = Integer.parseInt(rexecPortProperty.getValue());
}
catch (Exception e){
_rexecPort = REXEC_PORT_EDEFAULT;
}
IProperty serverPathProperty = set.getProperty(KEY_SERVER_PATH); IProperty serverPathProperty = set.getProperty(KEY_SERVER_PATH);
serverPathProperty.setEnabled(usingRexec); serverPathProperty.setEnabled(usingRexec);