harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r1000689 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/FilePermission.java
Date Fri, 24 Sep 2010 02:05:31 GMT
Author: tellison
Date: Fri Sep 24 02:05:31 2010
New Revision: 1000689

URL: http://svn.apache.org/viewvc?rev=1000689&view=rev
Log:
File permission actions must be expressed as an ascii string, so use a simpler lowercasing
method.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/FilePermission.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/FilePermission.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/FilePermission.java?rev=1000689&r1=1000688&r2=1000689&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/FilePermission.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/FilePermission.java
Fri Sep 24 02:05:31 2010
@@ -22,6 +22,7 @@ import java.security.Permission;
 import java.security.PermissionCollection;
 import java.security.PrivilegedAction;
 
+import org.apache.harmony.luni.util.Util;
 import org.apache.harmony.luni.internal.nls.Messages;
 
 /**
@@ -132,7 +133,7 @@ public final class FilePermission extend
      * @return the string representing this permission's actions
      */
     private String toCanonicalActionString(String action) {
-        actions = action.trim().toLowerCase();
+        actions = Util.toASCIILowerCase(action.trim());
 
         // get the numerical representation of the action list
         mask = getMask(actions);



Mime
View raw message