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

metadata clients cannot identify the source of a value type [SPR-5562] #10233

Closed
spring-projects-issues opened this issue Mar 10, 2009 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 10, 2009

Costin Leau opened SPR-5562 and commented

Another metadata request. Consider the following example:
<list value-type="java.lang.Double">
<value>0.0</value>
<value>1.0</value>
</list>

The parser stores the list value-type into each of the specified values if not type is specified. This is equivalent to:
<list>
<value type="java.lang.Double">0.0</value>
<value type="java.lang.Double">1.0</value>
</list>

The problem is that it clients relying on the metadata cannot determine wether the type has been specified on the value or on the list.
A quick solution would be to add another field to TypedStringValue (such as specifiedValue) and store there any value specified. The container would work as it is, relying on the value type (which is the specified one or, if none is specified, the default one).

Thanks,


Affects: 2.5.6

Issue Links:

Referenced from: commits 1b5812d

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: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants