Author: sebb
Date: Thu Sep  8 16:37:26 2011
New Revision: 1166786

URL: http://svn.apache.org/viewvc?rev=1166786&view=rev
Log:
LANG-744 StringUtils throws java.security.AccessControlException on Google App 
Engine
Display both Java6 and Sun exceptions when neither is available for stripAccents

Modified:
    
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java

Modified: 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1166786&r1=1166785&r2=1166786&view=diff
==============================================================================
--- 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
 (original)
+++ 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
 Thu Sep  8 16:37:26 2011
@@ -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;


Reply via email to