Skip to content

Commit ede5f99

Browse files
committed
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.
1 parent bedea78 commit ede5f99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mbi/core/src/org/fedoraproject/mbi/tool/compiler/CompilerTool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public void execute()
160160
options.add( "--release" );
161161
options.add( release + "" );
162162
}
163+
options.add( "-proc:full" );
163164
options.add( "-cp" );
164165
options.add( getClassPath().stream().map( Path::toString ).collect( Collectors.joining( ":" ) ) );
165166
StringWriter compilerOutput = new StringWriter();

0 commit comments

Comments
 (0)