[264865] JEM patch for a SocketTimeoutException
diff --git a/plugins/org.eclipse.jem.proxy/META-INF/MANIFEST.MF b/plugins/org.eclipse.jem.proxy/META-INF/MANIFEST.MF index 93c8752..7e5361c 100644 --- a/plugins/org.eclipse.jem.proxy/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.jem.proxy/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jem.proxy; singleton:=true -Bundle-Version: 2.0.100.qualifier +Bundle-Version: 2.0.110.qualifier Bundle-Activator: org.eclipse.jem.internal.proxy.core.ProxyPlugin Bundle-Vendor: %providerName Bundle-Localization: plugin
diff --git a/plugins/org.eclipse.jem.proxy/vm_remotevm/org/eclipse/jem/internal/proxy/vm/remote/ConnectionHandler.java b/plugins/org.eclipse.jem.proxy/vm_remotevm/org/eclipse/jem/internal/proxy/vm/remote/ConnectionHandler.java index c083327..3fcf3a5 100644 --- a/plugins/org.eclipse.jem.proxy/vm_remotevm/org/eclipse/jem/internal/proxy/vm/remote/ConnectionHandler.java +++ b/plugins/org.eclipse.jem.proxy/vm_remotevm/org/eclipse/jem/internal/proxy/vm/remote/ConnectionHandler.java
@@ -43,6 +43,30 @@ // in Linux 1.4. So on Linux 1.3 need to put timeouts in on those sockets that can be separately closed while reading/accepting. static boolean LINUX_1_3 = "linux".equalsIgnoreCase(System.getProperty("os.name")) && System.getProperty("java.version","").startsWith("1.3"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ + + static { + try{ + Class.forName("java.awt.Dialog"); + } + catch (ExceptionInInitializerError e){} + catch (LinkageError e){} + catch (ClassNotFoundException e) {} + + try{ + Class.forName("sun.awt.windows.WToolkit"); + } + catch (ExceptionInInitializerError e){} + catch (LinkageError e){} + catch (ClassNotFoundException e) {} + + try{ + Class.forName("java.awt.Component"); + } + catch (ExceptionInInitializerError e){} + catch (LinkageError e){} + catch (ClassNotFoundException e) {} + } + /** * This may be running as a callback, in that case there is no connectionThread. */