Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-02-19 11:23:23 -0500
committerUwe Stieber2013-02-19 11:23:23 -0500
commit1b384de0ee08aa938723af15400023e5cfad27f9 (patch)
tree1c706c9bd694de8d987876ae68a066a98cc842cd /plugins
parentc1c4b7a7527051398a1686b3e0596fabf9f0112c (diff)
downloadorg.eclipse.tcf-1b384de0ee08aa938723af15400023e5cfad27f9.tar.gz
org.eclipse.tcf-1b384de0ee08aa938723af15400023e5cfad27f9.tar.xz
org.eclipse.tcf-1b384de0ee08aa938723af15400023e5cfad27f9.zip
TCF Core: Bug #400659: Limit Java 7 workaround to Windows platforms
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/internal/services/local/LocatorService.java5
1 files changed, 4 insertions, 1 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 782f86f29..ed9f1199d 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
@@ -328,7 +328,10 @@ public class LocatorService implements ILocator {
//
// 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$
+ //
+ // Applies on Windows platforms only.
+ boolean isWin = System.getProperty("os.name", "").toLowerCase().startsWith("windows");
+ if (isWin && System.getProperty("java.net.preferIPv4Stack") == null) { //$NON-NLS-1$
System.setProperty("java.net.preferIPv4Stack", "true"); //$NON-NLS-1$ //$NON-NLS-2$
}
}

Back to the top