Escape the dot in regular expression 74/1674/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Tue, 3 Apr 2018 06:24:31 +0000 (09:24 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Tue, 3 Apr 2018 06:24:31 +0000 (09:24 +0300)
refs #7848

Change-Id: Iffbdcdc50150f24e4f6517fd8154a5a47bbf8eb0

bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/SWTAWTComponent.java

index 2f2f604ec038e79b32112e153789bff1ee8f2981..9a7b7aee736721cd12b23b7fa9a1f3ffb395a82c 100644 (file)
@@ -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);