Skip to content

CollectionFactory does not chain exceptions [SPR-9285] #13923

@spring-projects-issues

Description

@spring-projects-issues

Sandu Turcan opened SPR-9285 and commented

createMap and createCollection do not propagate the original exception if they fail to create an instance.
These are the offending lines:

catch (Exception ex) {
    throw new IllegalArgumentException("Could not instantiate Collection type: " + collectionType.getName());
}

and

catch (Exception ex) {
    throw new IllegalArgumentException("Could not instantiate Map type: " + mapType.getName());
}

Affects: 3.1.1

Sub-tasks:

Issue Links:

Referenced from: commits e5cfe8a, 2e48656, 98075c3

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions