On Tue, Sep 6, 2011 at 8:16 AM,  <s...@apache.org> wrote:
> Author: sebb
> Date: Tue Sep  6 15:16:47 2011
> New Revision: 1165701
>
> URL: http://svn.apache.org/viewvc?rev=1165701&view=rev
> Log:
> LANG-744 StringUtils throws java.security.AccessControlException on Google 
> App Engine
> Change static code to catch and save Exception; only report failure if no 
> method is available
>
> 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=1165701&r1=1165700&r2=1165701&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
>  Tue Sep  6 15:16:47 2011
> @@ -630,13 +630,14 @@ public class StringUtils {
>         }
>         try {
>             String result = null;
> -            if (java6Available) {
> +            if (java6NormalizeMethod != null) {
>                 result = removeAccentsJava6(input);
> -            } else if (sunAvailable) {
> +            } else if (sunDecomposeMethod != null) {
>                 result = removeAccentsSUN(input);
>             } else {
>                 throw new UnsupportedOperationException(
> -                    "The stripAccents(CharSequence) method requires at least 
> Java 1.6 or a Sun JVM");
> +                    "The stripAccents(CharSequence) method requires at least 
> Java 1.6 or a Sun JVM",
> +                    new UnsupportedOperationException(java6Exception));

Was it intended to have the same Exception twice? UOE in UOE?

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to