registerObjectMarshaller in Grails 1.1, suspected Bug


/ Published in: Groovy
Save to your folder(s)

Expected Behaviour
==================

* Both classes should be rendered in the specified custom format when `store/book/list.json` is loaded.
* Order of how the marshallers are added should not matter.
* It should be possible to register more than one custom object marshallers.


Bug
===

* Only the first registered marshaller is picked up as expected.
* The second one is ignored and the default JSON generated by Grails is returned.
* The order of the calls to `registerObjectMarshaller` matters, such that if the Book marshaller is added first, that one works. However if the Author marshaller is first, that one works.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.