Password encoder incorrect in DaoAuthenticationProviderSecurityBuilder

org.springframework.security.authentication.dao.DaoAuthenticationProvider accepts org.springframework.security.authentication.encoding.PasswordEncoder or org.springframework.security.crypto.password.PasswordEncoder which it creates a delegate for.