-
Couldn't load subscription status.
- Fork 1.1k
INT-3723: Fix HTTP module according SF changes #1455
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
JIRA: https://jira.spring.io/browse/INT-3723 Since `RequestMappingHandlerMapping` has came back to the `@RequestMapping` parsing, just restore the previous logic with `@RequestMapping` generation in the `IntegrationRequestMappingHandlerMapping`
|
@sbrannen, pay attention, please, to this Spring Integration changes which we were forced to do according to your last Thank you! |
|
Hi @artembilan, First and foremost, thanks so much for paying attention to the new "synthesized annotation" support coming in Spring Framework 4.2. It's very helpful to get early feedback! I would recommend against instantiating an annotation as an anonymous inner class simply because you never know how the annotation instance will be used by the caller. The reason this is dangerous is that this technique results in an object that implements the annotation's interface incorrectly. For example, For the time being, I would recommend the following implementation in order to ensure proper implementation of the annotation according to the specs: Yes, I realize it's cumbersome to have to specify the |
No, you have not missed anything. In fact, that's a very valid point! The validation that But... now that you mention it, I can see that there are use cases that would benefit from only having to supply the bare minimum of attributes to synthesize an annotation. In such uses cases, if an attribute is missing it should be set either to value of its alias (if an alias value exists) or to the value of the attribute's default value (if defined), and otherwise an exception should be thrown. I'll create a JIRA issue to make sure we improve the support for synthesizing annotations from maps as outlined above. Cheers, Sam |
…on creation through the inline impl
|
@sbrannen , thank you very much for such a valuable feedback! I've just pushed the Re. |
|
I just created SPR-13087. So feel free to watch it. |
OK! |
@artembilan , we should either merge this now or disable the nightly that's failing; you know how I dislike red nightlies 😄 |
|
I'd suggest you go ahead and merge it now. The only difference between now and after that JIRA issue is that you'll end up with one less line of code. ;) |
|
Merged as 0fdc630 |
|
Thanks @sbrannen |
JIRA: https://jira.spring.io/browse/INT-3723
Since
RequestMappingHandlerMappinghas came back to the@RequestMappingparsing,just restore the previous logic with
@RequestMappinggeneration in theIntegrationRequestMappingHandlerMapping