summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-01-28 17:08:15 +0200
committerArtur Signell <artur@vaadin.com>2015-01-29 10:13:00 +0200
commita66eeb58e8c1144c8d01cc37f727638139db711d (patch)
tree423a1973d4e7ed38152f18a206ea9c9b2d04c377 /shared
parenta681bf8f13163b67f55ec2d334f44f976d3eb161 (diff)
downloadvaadin-framework-a66eeb58e8c1144c8d01cc37f727638139db711d.tar.gz
vaadin-framework-a66eeb58e8c1144c8d01cc37f727638139db711d.zip
Do not loop infinitely when encountering an invalid tag name (#16522)
Also do not write to sysout Change-Id: Idae318a851323cd27b3363d12e8080101e996d9c
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/util/SharedUtil.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/src/com/vaadin/shared/util/SharedUtil.java b/shared/src/com/vaadin/shared/util/SharedUtil.java
index 206041235a..bc5d87b9f5 100644
--- a/shared/src/com/vaadin/shared/util/SharedUtil.java
+++ b/shared/src/com/vaadin/shared/util/SharedUtil.java
@@ -16,6 +16,7 @@
package com.vaadin.shared.util;
import java.io.Serializable;
+import java.util.Locale;
/**
* Misc internal utility methods used by both the server and the client package.
@@ -168,7 +169,8 @@ public class SharedUtil implements Serializable {
return string.toUpperCase();
}
- return string.substring(0, 1).toUpperCase() + string.substring(1);
+ return string.substring(0, 1).toUpperCase(Locale.ENGLISH)
+ + string.substring(1);
}
/**