From b1d38f31a52add4225143496efbeab94d4ede263 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Tue, 3 Apr 2018 09:24:31 +0300 Subject: [PATCH] Escape the dot in regular expression refs #7848 Change-Id: Iffbdcdc50150f24e4f6517fd8154a5a47bbf8eb0 --- .../src/org/simantics/utils/ui/SWTAWTComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.1