Author: adrianc
Date: Wed Apr 7 06:24:24 2010
New Revision: 931441
URL:
http://svn.apache.org/viewvc?rev=931441&view=revLog:
Fixed some catch clauses.
Modified:
ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/BasicPermission.java
ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/PermissionsIntersection.java
Modified: ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/BasicPermission.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/BasicPermission.java?rev=931441&r1=931440&r2=931441&view=diff==============================================================================
--- ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/BasicPermission.java (original)
+++ ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/BasicPermission.java Wed Apr 7 06:24:24 2010
@@ -65,7 +65,7 @@ public class BasicPermission extends Per
}
}
return false;
- } catch (Exception e) {}
+ } catch (ClassCastException e) {}
try {
PermissionsIntersection permissionsIntersection = (PermissionsIntersection) permission;
for (Permission perm : permissionsIntersection.getPermissionsSet()) {
@@ -74,7 +74,7 @@ public class BasicPermission extends Per
}
}
return true;
- } catch (Exception e) {}
+ } catch (ClassCastException e) {}
return this.equals(permission);
}
Modified: ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/PermissionsIntersection.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/PermissionsIntersection.java?rev=931441&r1=931440&r2=931441&view=diff==============================================================================
--- ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/PermissionsIntersection.java (original)
+++ ofbiz/branches/executioncontext20091231/framework/base/src/org/ofbiz/base/authorization/PermissionsIntersection.java Wed Apr 7 06:24:24 2010
@@ -53,7 +53,7 @@ public class PermissionsIntersection ext
}
}
return false;
- } catch (Exception e) {}
+ } catch (ClassCastException e) {}
try {
PermissionsIntersection permissionsIntersection = (PermissionsIntersection) permission;
for (Permission perm : permissionsIntersection.getPermissionsSet()) {
@@ -62,7 +62,7 @@ public class PermissionsIntersection ext
}
}
return true;
- } catch (Exception e) {}
+ } catch (ClassCastException e) {}
for (Permission perm : this.permissionsSet) {
if (!perm.implies(permission)) {
return false;