1
0
mirror of synced 2026-08-05 17:57:15 +00:00

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:
Ben Alex
2005-06-22 05:22:05 +00:00
parent 1cfdc86ff4
commit a7b5299e77
2 changed files with 7 additions and 1 deletions
@@ -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");