Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflowError when converting nested Lists [SPR-7289] #11948

Closed
spring-projects-issues opened this issue Jun 16, 2010 · 1 comment
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 16, 2010

Oliver Becker opened SPR-7289 and commented

The following simple unit test demonstrates the problem:

ConversionService service = ConversionServiceFactory.createDefaultConversionService();
List<List<String>> list = Collections.singletonList(Collections.singletonList("Foo"));
Assert.assertNotNull(service.convert(list, String.class));

Most probably the problem stems from the changed method in TypeDescriptor

public synchronized TypeDescriptor getElementTypeDescriptor() {
if (this.elementType == null) {
this.elementType = forElementType(resolveElementType());
}
return this.elementType;
}

and the fact that forElementType returns this in this case.


Affects: 3.0.3

Issue Links:

Referenced from: commits 27b0403

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Fixed for 3.0.4 - will be available in tonight's 3.0.4 snapshot. Please give it an early try and let us know whether it works for you (again)!

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants