Correct synchronization issue with FilterToBeanProxy initialization (thanks to George Franciscus and Volker Malzahn as per acegisecurity-developer discussion 4 June 2005).
This commit is contained in:
@@ -150,7 +150,12 @@ public class FilterToBeanProxy implements Filter {
|
||||
.getServletContext());
|
||||
}
|
||||
|
||||
private void doInit() throws ServletException {
|
||||
private synchronized void doInit() throws ServletException {
|
||||
if (initialized) {
|
||||
// already initialized, so don't re-initialize
|
||||
return;
|
||||
}
|
||||
|
||||
initialized = true;
|
||||
|
||||
String targetBean = filterConfig.getInitParameter("targetBean");
|
||||
|
||||
Reference in New Issue
Block a user