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

By default, there is broken conversion String -> ContextResource [SPR-8383] #13030

Closed
spring-projects-issues opened this issue May 31, 2011 · 1 comment
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

Gerr Magnus Mes opened SPR-8383 and commented

For example:

public class SomeBean {
private ContextResource cache;

@Required
public void setCache(ContextResource cache) {
    this.cache = cache;
}

}
...

<bean id="someBean" class="org.miramax.domain.movies.someBean">
<property name="cache" value="/WEB-INF/tmp"/>
</bean>

...

org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'org.springframework.core.io.ContextResource'

Spring 2.x has no problem with conversion.


Affects: 3.0.5

Referenced from: commits fece2c1, f288060

@spring-projects-issues
Copy link
Collaborator Author

Keith Donald commented

Juergen, I assigned to you since it was reported against 3.0.5 and doesn't seem to involve the ConversionService. Looks like something to look into for the 3.0.6 work.

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.6 milestone Jan 11, 2019
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