diff options
author | Lars Vogel | 2019-02-11 09:20:41 +0000 |
---|---|---|
committer | Lars Vogel | 2019-02-11 09:20:41 +0000 |
commit | fc135dad38ae8ffe278d7ff20d9eb2b1d186c127 (patch) | |
tree | 1d85002cf4bf011cde7833abd8a514c2f632e364 | |
parent | f5f7312ce23a5b3ee5699633de74e1496deb1a4f (diff) | |
download | rt.equinox.framework-fc135dad38ae8ffe278d7ff20d9eb2b1d186c127.tar.gz rt.equinox.framework-fc135dad38ae8ffe278d7ff20d9eb2b1d186c127.tar.xz rt.equinox.framework-fc135dad38ae8ffe278d7ff20d9eb2b1d186c127.zip |
Bug 544327 - Remove check for Java 1.4 availability Main#substituteVars
in org.eclipse.equinox.launcher
Change-Id: I2abc11da0df47df496520af3f4bdf5c5e02ae021
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java index 2e2510c0b..43c6d266c 100644 --- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java +++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java @@ -2836,15 +2836,7 @@ public class Main { if (var != null && var.length() > 0) prop = System.getProperty(var); if (prop == null) { - try { - // try using the System.getenv method if it exists (bug 126921) - Method getenv = System.class.getMethod("getenv", new Class[] {String.class}); //$NON-NLS-1$ - prop = (String) getenv.invoke(null, new Object[] {var}); - } catch (Throwable t) { - // do nothing; - // on 1.4 VMs this throws an error - // on J2ME this method does not exist - } + prop = System.getenv(var); } if (prop != null) { // found a value; use it |