From 24e995eecafee8b83d8783a7c2c1522c7c9b21b8 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 11 Jul 2025 16:51:52 +0200 Subject: [PATCH] Explicitly enable annotation processing Up to JDK 22, `-proc:full` (annotation processing + compilation) was the default. From JDK 23 onward, the compiler uses `-proc:none` by default. We must now explicitly pass `-proc:full` to enable annotation processing. --- .../src/org/fedoraproject/mbi/tool/compiler/CompilerTool.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mbi/core/src/org/fedoraproject/mbi/tool/compiler/CompilerTool.java b/mbi/core/src/org/fedoraproject/mbi/tool/compiler/CompilerTool.java index effd9f85..08fd9725 100644 --- a/mbi/core/src/org/fedoraproject/mbi/tool/compiler/CompilerTool.java +++ b/mbi/core/src/org/fedoraproject/mbi/tool/compiler/CompilerTool.java @@ -160,6 +160,7 @@ public void execute() options.add( "--release" ); options.add( release + "" ); } + options.add( "-proc:full" ); options.add( "-cp" ); options.add( getClassPath().stream().map( Path::toString ).collect( Collectors.joining( ":" ) ) ); StringWriter compilerOutput = new StringWriter();