GErrorException improvements #340

Merged
jwharm merged 1 commit from gerror-exception into main 2026-03-19 09:08:27 +01:00
Owner

Removed private static helper methods in the GErrorException class that are not necessary anymore with JEP 513 (Flexible Constructor Bodies).

Changed the constructor into a static factory method `take() to emphasize that the GError instance is consumed.

Added toGErrorUnowned() that automatically detaches the Cleaner, and updated the code generator to use this.

Removed private static helper methods in the GErrorException class that are not necessary anymore with JEP 513 (Flexible Constructor Bodies). Changed the constructor into a static factory method `take() to emphasize that the GError instance is consumed. Added `toGErrorUnowned()` that automatically detaches the Cleaner, and updated the code generator to use this.
Removed private static helper methods in the GErrorException class that
are not necessary anymore with JEP 513 (Flexible Constructor Bodies).

Changed the constructor into a static factory method `take() to
emphasize that the GError instance is consumed.

Added `toGErrorUnowned()` that automatically detaches the Cleaner, and
updated the code generator to use this.
jwharm merged commit e00fa1123c into main 2026-03-19 09:08:27 +01:00
jwharm deleted branch gerror-exception 2026-03-19 09:08:34 +01:00
Sign in to join this conversation.
No description provided.