Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-02-19 06:35:36 -0500
committerUwe Stieber2013-02-19 06:35:36 -0500
commit6c520b663029d0d406a8efe7332aba1435410a6b (patch)
tree23e1e51f9ed626de9e5256033d2daeb1442507e3 /plugins
parentf4cafbc48cd36b0d43a94075d202f6678206d4ed (diff)
downloadorg.eclipse.tcf-6c520b663029d0d406a8efe7332aba1435410a6b.tar.gz
org.eclipse.tcf-6c520b663029d0d406a8efe7332aba1435410a6b.tar.xz
org.eclipse.tcf-6c520b663029d0d406a8efe7332aba1435410a6b.zip
TCF Core: Bug 400659 - TCF does not work with Java 7
Default to "java.net.preferIPv4Stack = true" if not set otherwise. Workarounds Oracle bug 7179799">7179799 until fixed. Necessary as the behavior is now observed with both newer Java 6 SE and Java 7 SE.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/internal/services/local/LocatorService.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/internal/services/local/LocatorService.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/internal/services/local/LocatorService.java
index d3ed286e7..782f86f29 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/internal/services/local/LocatorService.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/internal/services/local/LocatorService.java
@@ -323,6 +323,14 @@ public class LocatorService implements ILocator {
return null;
}
});
+
+ // Bug #400659 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=400659):
+ //
+ // To workaround Bug 388125 (Oracle bug 7179799) with Java 7, force
+ // "java.net.preferIPv4Stack" to be set to "true"
+ if (System.getProperty("java.net.preferIPv4Stack") == null) { //$NON-NLS-1$
+ System.setProperty("java.net.preferIPv4Stack", "true"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
}
private static DatagramSocket createSocket(boolean slave) throws SocketException {

Back to the top