Skip to content

SQLErrorCodesFactory should use its classloader when loading the default codes [SPR-5118] #9791

@spring-projects-issues

Description

@spring-projects-issues

Costin Leau opened SPR-5118 and commented

SQLErrorCodesFactory uses a ClassPathResource (which in this case relies on the TCCL) to load both custom and default codes. Since the default codes are specified in the Spring jar, the factory could use its classloader to load these resources and then use the client classloader (if available instead of the TCCL) to load the custom codes.
In OSGi this makes a difference as it doesn't require users to import various jdbc packages.
(see http://tinyurl.com/5cle3n).


Affects: 2.5.5

1 votes, 1 watchers

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions