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

Marshaller properties - cast needed [SPR-7292] #11951

Closed
spring-projects-issues opened this issue Jun 16, 2010 · 1 comment
Closed

Marshaller properties - cast needed [SPR-7292] #11951

spring-projects-issues opened this issue Jun 16, 2010 · 1 comment
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Michael Isvy opened SPR-7292 and commented

Currently, I need to set a Marshaller's properties as follows:

. 
marshaller.setMarshallerProperties(Collections.singletonMap(Marshaller.JAXB_FORMATTED_OUTPUT, (Object) Boolean.TRUE));

It would be nice if I didn't need to do the cast. In that case, the method should take an argument of type
Map<String, ? extends Object> instead of Map<String, Object>.


Referenced from: commits 5e5a8a0

2 votes, 3 watchers

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good point. Jaxb2Marshaller's "marshallerProperties" (and also "unmarshallerProperties") Map accepts any value type now, as of Spring 3.0.4.

Juergen

@spring-projects-issues spring-projects-issues added in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.4 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants