Adding a System.err when a security manager stops JDK 1.5 from being able to access the Sun Normalizer class. LANG-744
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1163906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ff66dbcf6e
commit
2998309d72
|
@ -744,7 +744,10 @@ public class StringUtils {
|
|||
} catch (NoSuchMethodException e) {
|
||||
sunAvailable = false;
|
||||
} catch (java.security.AccessControlException e) {
|
||||
// LANG-744 - thrown in Google App Engine
|
||||
// LANG-744 - thrown when under a SecurityManager
|
||||
// we are not allowed to access this class
|
||||
System.err.println("Caught a AccessControlException loading sun.text.Normalizer. " +
|
||||
"Adjust your security manager if you want to use the stripAccents method. ");
|
||||
sunAvailable = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue