-
Notifications
You must be signed in to change notification settings - Fork 45
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
Additional tests for getting the interceptor bindings from the InvocationContext #522
Additional tests for getting the interceptor bindings from the InvocationContext #522
Conversation
Test that additional bindings (where a binding annotation is placed on another binding annotation) are returned by InvocationContext.getInterceptorBindings. Signed-off-by: Andrew Rouse <anrouse@uk.ibm.com>
...tests/build/compatible/extensions/changeInterceptorBinding/ChangeInterceptorBindingTest.java
Outdated
Show resolved
Hide resolved
.../build/compatible/extensions/changeInterceptorBinding/ChangeInterceptorBindingExtension.java
Outdated
Show resolved
Hide resolved
LGTM, though I had to think a little about whether transitive interceptor bindings should appear. They probably should, together with inherited interceptor bindings, but it's likely best to make a small amend to the Interceptors spec: jakartaee/interceptors#106 I also have a change locally that adds a test for
I can either add it to this PR, or submit a separate one. |
Test that an interceptor binding added to a method via an annotation is used to bind the interceptor and visible via InterceptionContext.getInterceptorBinding Signed-off-by: Andrew Rouse <anrouse@uk.ibm.com>
c2a5d5f
to
c5aed17
Compare
I've made the requested changes. I don't mind whether @Ladicek wants to add his tests to this PR or make a new one. |
I'll submit a 2nd PR once we merge this, then. Probably easiest to review that way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The code changes look good. I have one question regarding copyright. I noticed in most other files, the following copyright text was used:
In other Jakarta EE projects such as Jakarta Data. The following copyright header is used:
Are there any objections to start using the EF copyright for the new files from now on? |
These were there historically and as far as I can tell, since the move to Jakarta we haven't been adding them anywhere.
Is there a formal requirement to explicitly add them to all new files? It was my understanding that copyrights on each file are not required. That being said, I'm by no means an expert in this area. It's just my personal take that if we can avoid adding any copyright to files, we should. |
@waynebeaton can you confirm? |
I would very much prefer to deal with license headers in a different issue / PR. I know that by now, we have many files in the TCK that don't have a license header (because I created them :-) ), so if there's a problem, there needs to be a holistic solution. |
We can merge this PR and deal with the header issue later once we hear from Wayne. |
Please add a copyright and license header on every file when the format permits it. https://www.eclipse.org/projects/handbook/#ip-copyright-headers |
Thank you @waynebeaton for the confirmation! I have opened this issue to address your concern. |
Follow up to #479 to add a few more tests.
InvocationContextTest
to include an interceptor binding annotation which is annotated with another interceptor binding.