spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

Remove javadoc warnings for spring-security-aspects

Open rwinch opened this issue 10 months ago • 6 comments

See gh-18443 for more details.

rwinch avatar Jan 09 '26 20:01 rwinch

I'll take that one

thuri avatar Jan 17 '26 09:01 thuri

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

thuri avatar Jan 17 '26 09:01 thuri

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.

thuri avatar Jan 31 '26 10:01 thuri

I would like to work on this issue.

My plan is:

  1. Re-run :spring-security-aspects:javadoc on JDK 17 and confirm current warning output.
  2. Verify whether the javadoc task includes AspectJ (.aj) sources.
  3. If applicable, enable javadoc-warnings-error for this module and make sure checks stay green.
  4. 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.

DDINGJOO avatar Mar 06 '26 11:03 DDINGJOO

I saw the previous investigation and I will continue from that point unless someone is actively working on this issue.

DDINGJOO avatar Mar 06 '26 11:03 DDINGJOO

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.

DDINGJOO avatar Mar 06 '26 11:03 DDINGJOO