From 0ee2a1ec2c93781ac9a303b4fb1cb43fc9e9fcf0 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 8 Sep 2011 16:37:26 +0000 Subject: [PATCH] LANG-744 StringUtils throws java.security.AccessControlException on Google App Engine Display both Java6 and Sun exceptions when neither is available for stripAccents git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1166786 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/StringUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 9f785eb9c..892e868c1 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -636,8 +636,9 @@ public class StringUtils { result = removeAccentsSUN(input); } else { throw new UnsupportedOperationException( - "The stripAccents(CharSequence) method requires at least Java 1.6 or a Sun JVM", - new UnsupportedOperationException(java6Exception)); + "The stripAccents(CharSequence) method requires at least" + +" Java6, but got: "+java6Exception + +"; or a Sun JVM: "+sunException); } // Note that none of the above methods correctly remove ligatures... return result;