Eric Chijioke (Migrated from SEC-1433) said:
A number of standard Spring Security classes have a dependency on org.springframework.dao.DataAccessException as thrown exception on some API methods. This seems unnecessary as it introduces a dependency on org.springframework.transaction.jar simply to include this exception type.
Some of the dependent classes are:
There are a few others where it's use may be justified, but in general it would feel a lot cleaner if there wasn't a dependence on that jar.
Luke Taylor said:
Unfortunately it isn't really possible to remove the dependency completely. Classes which use Spring JDBC still require this. Spring LDAP also has a dependency on the DataAccessException hierarchy, so in practice LDAP cannot be used without it.
I've removed the dependency from interfaces and classes which do not use JDBC directly, which should allow people to use these without the spring-tx jar being present, if they choose to do so.