From: Jussi Koskela Date: Tue, 3 Apr 2018 06:24:31 +0000 (+0300) Subject: Escape the dot in regular expression X-Git-Tag: v1.43.0~136^2~511 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F1674%2F1;p=simantics%2Fplatform.git Escape the dot in regular expression refs #7848 Change-Id: Iffbdcdc50150f24e4f6517fd8154a5a47bbf8eb0 --- diff --git a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTAWTComponent.java b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTAWTComponent.java index 2f2f604ec..9a7b7aee7 100644 --- a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTAWTComponent.java +++ b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTAWTComponent.java @@ -346,7 +346,7 @@ public abstract class SWTAWTComponent extends Composite { private void workaroundJava7FocusProblem(Frame frame) { String ver = System.getProperty("java.version"); - String[] split = ver.split("."); + String[] split = ver.split("\\."); if (split.length < 2) { LOGGER.warn("Focus fix listener: unrecognized Java version: " + ver);