-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
docs: Clarify that annotations can also be inherited from interfaces #278
Conversation
@cowtowncoder are there automated tests that verify this? Maybe linking them from the readme would be a good idea -- examples can help clarify doubts |
@jakub-bochenski feel free to contribute test cases yourself if this matters to you. |
so this is not covered by any existing tests? |
Why is it up to me or anyone else to check this? The code is public. The code is written in plain Java and uses the junit test framework. |
@jakub-bochenski First of all, thank you for contributing the pr. This should be useful to help behavior. As to testing: this repo/package has very little code (on purpose -- to minimize jar for use by value classes); the actual flattening/processing logic is in That repo also has a few tests (700+ test classes), some directly checking how annotation processing works, but more testing actual usage (esp. regression tests). So code involved is covered by tests, but test classes are spread around a few test packages; As to coverage, you can see code coverage at https://app.codecov.io/github/FasterXML/jackson-databind?branch=2.18 and specifically |
Thanks, @cowtowncoder On a quick look I cannot find any tests that would deal with annotations on interfaces. I'm not really concerned about bugs -- in this context I'm thinking about tests as a form of documentation that is automatically verified. Adding such tests doesn't seem very hard, but I don't have time to do this now. |
@jakub-bochenski That makes sense. Unfortunately tests are not structured/grouped in a way that is super clear, wrt. this particular aspect. There's also some conflation with low-level (flattening hierarchy of actual annotations) and higher-level processing (extracting actual semantics from known annotations via If you did want to dig deeper at some point, I think |
Solves #271