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

Convert comma-separated string into list of classes analogous to existing support for class array [SPR-14415] #18986

Closed
spring-projects-issues opened this issue Jun 28, 2016 · 2 comments
Assignees
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 28, 2016

Mariusz Kopylec opened SPR-14415 and commented

When a configuration property type is List<Class> it is not resolved properly.
See spring-projects/spring-boot#6240 for more informations.


Affects: 4.2.6

Reference URL: spring-projects/spring-boot#6240

Issue Links:

  • #11213 Property injection fails for arrays of enums if there is more than 1 value

Referenced from: commits c4c941c

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 30, 2016

Juergen Hoeller commented

We happen to have support for converting such comma-separated values into a class array already (through a dedicated ClassArrayEditor), but not into a list of classes yet (where we're simply trying to convert such a case into a single entry via ClassEditor). I'll revise this for 4.3.1.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 30, 2016

Juergen Hoeller commented

We're treating Class collections analogous to Enum collections now, pre-processing single values through comma separation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants