From 4341710e188f7a52b6a3af7270b4a6fd8f0a099f Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 22 Feb 2007 19:21:52 +0000 Subject: [PATCH] Ignore cruft at the end of the version string. --- src/java/com/threerings/getdown/data/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/getdown/data/Application.java b/src/java/com/threerings/getdown/data/Application.java index eba8a94..1673a2c 100644 --- a/src/java/com/threerings/getdown/data/Application.java +++ b/src/java/com/threerings/getdown/data/Application.java @@ -538,7 +538,7 @@ public class Application // parse the version out of the java.version system property String verstr = System.getProperty("java.version"); - Matcher m = Pattern.compile("(\\d+)\\.(\\d+)\\.(\\d+)(_\\d+)?").matcher(verstr); + Matcher m = Pattern.compile("(\\d+)\\.(\\d+)\\.(\\d+)(_\\d+)?.*").matcher(verstr); if (!m.matches()) { // if we can't parse the java version we're in weird land and should probably just try // our luck with what we've got rather than try to download a new jvm