Skip to main content
diff options
authorAlex Blewitt2020-07-04 13:03:06 +0000
committerAlex Blewitt2020-07-15 08:27:52 +0000
commit7f7dbae6777773c1b54c3c9864728b4215e19219 (patch)
parent494ada4f81a713f73c0b3e5dd2d71e572af6e21a (diff)
When running on macOS, a warning is shown on the console every time an Eclipse application is launched: > !ENTRY 1 0 2020-07-04 14:01:49.811 > !MESSAGE System property http.nonProxyHosts has been set to > local|*.local|169.254/16|*.169.254/16 by an external source. > This value will be overwritten using the values from the preferences This warning is unnecessary, because the JVM automatically sets these values on startup and the proxy setup then does exactly the same thing. There appears to be a logic bug in that the path to verify that the proxies are set that assumes the nonProxyHosts property is empty if the proxies are disabled. However, that condition on macOS is not valid, since the JVM itself will set this value even if the proxies aren't set. Therefore, checking the field is empty on macOS isn't valid. For minimal impact, when running on macOS, pass the DO_NOT_VERIFY instead of VERIFY_EMPTY so that this message is not generated unnecessarily every time Eclipse launches. Change-Id: I68e955677b347a6b62ef83cdb842c3aa15b203d8 Signed-off-by: Alex Blewitt <>
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/ b/bundles/
index d4e5c6d63..955bfb1e7 100644
--- a/bundles/
+++ b/bundles/
@@ -533,7 +533,10 @@ public class ProxyType implements INodeChangeListener, IPreferenceChangeListener
public void initialize() {
- updateSystemProperties(getProxyData(VERIFY_EMPTY));
+ // On mac, the system proxy configuration is set by the JVM automatically
+ boolean isMac = "macosx".equals(System.getProperty("osgi.os")); //$NON-NLS-1$//$NON-NLS-2$
+ int verify = isMac ? DO_NOT_VERIFY : VERIFY_EMPTY;
+ updateSystemProperties(getProxyData(verify));
preferenceManager.addNodeChangeListener(PREF_PROXY_DATA_NODE, this);
preferenceManager.addPreferenceChangeListener(getPreferenceNode(), this);

Back to the top