From d244bcf76e4dc5effeab4ac56028339b97e534c3 Mon Sep 17 00:00:00 2001 From: Park JuHyeong Date: Sun, 25 Jan 2026 16:29:25 +0900 Subject: [PATCH] Suppress AspectJ compiler warnings in spring-security-aspects - Added -Xlint:ignore to compileAspectj task - Added -Xlint:ignore to compileTestAspectj task Fixes the following AspectJ warnings: - AnnotationSecurityAspect.aj:72 [warning] advice defined - AbstractMethodInterceptorAspect.aj:36 [warning] advice defined These warnings occur because the AspectJ compiler detects that advice in deprecated aspect classes may not match any join points, which is expected behavior for deprecated code maintained for backward compatibility. Contributes to gh-18405 Signed-off-by: Park JuHyeong --- aspects/spring-security-aspects.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aspects/spring-security-aspects.gradle b/aspects/spring-security-aspects.gradle index bc0fd41d6d..d4db6ebfad 100644 --- a/aspects/spring-security-aspects.gradle +++ b/aspects/spring-security-aspects.gradle @@ -1,13 +1,16 @@ apply plugin: 'io.spring.convention.spring-module' apply plugin: 'io.freefair.aspectj' +apply plugin: 'compile-warnings-error' compileAspectj { sourceCompatibility = "17" targetCompatibility = "17" + ajcOptions.compilerArgs += ['-Xlint:ignore'] } compileTestAspectj { sourceCompatibility = "17" targetCompatibility = "17" + ajcOptions.compilerArgs += ['-Xlint:ignore'] } dependencies {