-
Notifications
You must be signed in to change notification settings - Fork 1.1k
GH-3096: Skip RESOLVABLE_TYPE header in mapping #3098
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
Conversation
|
Travis failures. Do we really want to just skip it? I see it is serializable - can we not just serialize it to a |
|
But I guess that could be a new feature, different PR. |
|
Please, hold off the merge until #3100. If you want I can Thanks |
I don't think it so platform independent to use Java serialization... We may reconsider that in the future. |
|
Hmmm - I merged 3100 but still curious why travis failed here because this branch doesn't have |
Fixes spring-projects#3096 When we sent an AMQP message we should not map a `JsonHeaders.RESOLVABLE_TYPE` header which is a `ResolvableType` and isn not compatible after converting to string Also improve `JsonToObjectTransformer` to ignore a `JsonHeaders.RESOLVABLE_TYPE` when it is type of String
|
Yeah... Have on idea. Have just rebased and force-pushed. |
Then what is the purpose of setting the header in the first place? It's unlikely we convert to JSON and back to a POJO in the same app and I see the JTOT falls back to assembling it from the other headers. I don't have a problem with this as-is; just curious. |
|
A We can think, though, about reconstructing this header in the |
|
I have merged it, but perhaps we should add some protection here ResolvableType valueType = headers.get(JsonHeaders.RESOLVABLE_TYPE, ResolvableType.class);and ignore if it's the wrong type? |
|
I thought I did in the |
|
Sorry - I was looking locally without pulling 😦 |
|
Some clean up commit though: dd1d65b |
Fixes #3096
When we sent an AMQP message we should not map a
JsonHeaders.RESOLVABLE_TYPEheader which is aResolvableTypeandisn not compatible after converting to string
Also improve
JsonToObjectTransformerto ignore aJsonHeaders.RESOLVABLE_TYPEwhen it is type of String