Inject code in patches #361

Merged
jwharm merged 1 commit from inject-patches into main 2026-05-09 22:22:53 +02:00
Owner

The Java-GI fork of JavaPoet has been extended to allow adding arbitrary codeblocks to generated classes. This is now used to generate methods that are added by Java-GI to GObject, GTypeInstance and a few other classes. Previously, these methods were generated with the JavaPoet API in the ClassGenerator and RecordGenerator, but it's much clearer to do this in the patch classes.

With this functionality it will be easier in the future to add or replace methods with custom code.

The Java-GI fork of JavaPoet has been extended to allow adding arbitrary codeblocks to generated classes. This is now used to generate methods that are added by Java-GI to GObject, GTypeInstance and a few other classes. Previously, these methods were generated with the JavaPoet API in the ClassGenerator and RecordGenerator, but it's much clearer to do this in the patch classes. With this functionality it will be easier in the future to add or replace methods with custom code.
The Java-GI fork of JavaPoet has been extended to allow adding arbitrary
codeblocks to generated classes. This is now used to generate methods
that are added by Java-GI to GObject, GTypeInstance and a few other
classes. Previously, these methods were generated with the JavaPoet API
in the ClassGenerator and RecordGenerator, but it's much clearer to do
this in the patch classes.

With this functionality it will be easier in the future to add or
replace methods with custom code.
jwharm merged commit 0797319300 into main 2026-05-09 22:23:11 +02:00
jwharm deleted branch inject-patches 2026-05-09 22:23:17 +02:00
Sign in to join this conversation.
No description provided.