Remove javadoc warnings for spring-security-aspects
See gh-18443 for more details.
I'll take that one
The thing is that the javadoc in the *aj files is no compiled as for "normal" java files. At the moment there are no javadoc warnings but there can't be as far as I understand this. I'm not familiar with this so it'll need some time. Any help is appreciated :-D
I'm sorry but I really have no idea how to fix this. It looks like the javadoc comments on the aspect files need a separate tool (ajdoc) to generate the javadoc. Actually the current spring docs https://docs.spring.io/spring-security/reference/api/java/index.html don't contain any javadoc for the aspects in this project.
So maybe this issue should be closed and a new issue be created which introduces ajdoc to generate the javadocs for the aspects.
I would like to work on this issue.
My plan is:
- Re-run :spring-security-aspects:javadoc on JDK 17 and confirm current warning output.
- Verify whether the javadoc task includes AspectJ (.aj) sources.
- If applicable, enable javadoc-warnings-error for this module and make sure checks stay green.
- If javadoc does not cover .aj sources, I will post a short proposal here before opening a PR so we can align on the expected approach.
I saw the previous investigation and I will continue from that point unless someone is actively working on this issue.
Update from my side:
I re-ran the module build with JDK 17:
- ./gradlew --no-build-cache clean :spring-security-aspects:javadoc :spring-security-aspects:check
Result:
- :spring-security-aspects:javadoc is NO-SOURCE
- The module currently has AspectJ (.aj) sources and no Java sources for the javadoc task
Given that, my planned PR scope is:
- apply javadoc-warnings-error to spring-security-aspects for consistency with the other modules
- keep behavior unchanged for now (no ajdoc integration in this PR)
If that scope sounds good, I will open the PR with this focused change.