commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1160568 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Tue, 23 Aug 2011 07:05:46 GMT
Author: bayard
Date: Tue Aug 23 07:05:46 2011
New Revision: 1160568

URL: http://svn.apache.org/viewvc?rev=1160568&view=rev
Log:
Adding an exception to catch AccessControlExceptions in Google App Engine as reported by Clément
Denis in LANG-744

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=1160568&r1=1160567&r2=1160568&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
Aug 23 07:05:46 2011
@@ -743,6 +743,9 @@ public class StringUtils {
             sunAvailable = false;
         } catch (NoSuchMethodException e) {
             sunAvailable = false;
+        } catch (java.security.AccessControlException e) {
+            // LANG-744 - thrown in Google App Engine
+            sunAvailable = false;
         }
     }
 



Mime
View raw message