While reading the source code of this class, this looked strange to my eyes
 
    public void addSecurityRole(String role) {
 
        synchronized (securityRoles) {
            String results[] =new String[securityRoles.length + 1];
            for (int i = 0; i < securityRoles.length; i++)
                results[i] = securityRoles[i];
            results[securityRoles.length] = name; // < < - - - - - - - 
            securityRoles = results;
        }
        fireContainerEvent("addSecurityRole", role);
 
    }
 
is name correct? It compiles, because name is a field of
ContainerBase(super), but should it not be "role"?


Reply via email to