Hi,

Tom and I investigated a little issue with netx SocketPermissions. The
code initialized a SocketPermission with actions separated with a
command and spaces. This patch makes us handle that format and makes the
action parsing similar to how we handle FilePermission actions.

2006-01-29  Mark Wielaard  <[EMAIL PROTECTED]>

    * java/net/SocketPermission.java (setActions): Trim and lower case
    action.

Committed,

Mark

diff -u -r1.19 SocketPermission.java
--- java/net/SocketPermission.java      24 Jan 2006 14:07:46 -0000      1.19
+++ java/net/SocketPermission.java      29 Jan 2006 18:51:52 -0000
@@ -270,6 +270,7 @@
     while (t.hasMoreTokens())
       {
        String action = t.nextToken();
+       action = action.trim().toLowerCase();
        setAction(action);

        if (action.equals("resolve"))

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to