You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/04/07 02:28:29 UTC
svn commit: r160351 - in
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl:
DefaultPolicy.java URLPolicy.java
Author: gregor
Date: Wed Apr 6 17:28:28 2005
New Revision: 160351
URL: http://svn.apache.org/viewcvs?view=rev&rev=160351
Log:
Do not return an array of AbstractRole to enable implementations not derived from AbstractRole. This resolves http://issues.apache.org/bugzilla/show_bug.cgi?id=34290 Thanks to Joachim Breitsprecher.
Modified:
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/DefaultPolicy.java
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/URLPolicy.java
Modified: lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/DefaultPolicy.java
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/DefaultPolicy.java?view=diff&r1=160350&r2=160351
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/DefaultPolicy.java (original)
+++ lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/DefaultPolicy.java Wed Apr 6 17:28:28 2005
@@ -15,7 +15,7 @@
*
*/
-/* $Id: DefaultPolicy.java,v 1.5 2004/04/28 16:18:33 andreas Exp $ */
+/* $Id$ */
package org.apache.lenya.ac.impl;
@@ -136,7 +136,7 @@
}
}
- return (AbstractRole[]) roles.toArray(new AbstractRole[roles.size()]);
+ return (Role[]) roles.toArray(new Role[roles.size()]);
}
/**
Modified: lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/URLPolicy.java
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/URLPolicy.java?view=diff&r1=160350&r2=160351
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/URLPolicy.java (original)
+++ lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/ac/impl/URLPolicy.java Wed Apr 6 17:28:28 2005
@@ -15,7 +15,7 @@
*
*/
-/* $Id: URLPolicy.java,v 1.8 2004/08/16 08:18:15 andreas Exp $ */
+/* $Id$ */
package org.apache.lenya.ac.impl;
@@ -90,7 +90,7 @@
addRoles(policies[i], identity, roles);
}
}
- return (AbstractRole[]) roles.toArray(new AbstractRole[roles.size()]);
+ return (Role[]) roles.toArray(new Role[roles.size()]);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org