sdaschner / jaxrs-analyzer

Creates REST documentation for JAX-RS projects
Apache License 2.0
319 stars 101 forks source link

Ensure that superclass JAX-RS annotations are scanned #194

Open TristanPerry opened 4 years ago

TristanPerry commented 4 years ago

Fix issue https://github.com/sdaschner/jaxrs-analyzer/issues/140 (superclass JAX-RS annotations being ignored), caused by ASM not looking at superclasses by default.

This change adapts ProjectAnalyzer so that the superclass of a method is also visited, with the ASM results being added to ClassResult as normal.

This then required some tweaks to JavaDocAnalyzer because the classResult.getOriginalClass().equals(identifier.getContainingClass()) part wasn't working as you'd expect.