Additional deep inheritance related errors #351

Closed
opened 2026-04-18 20:40:52 +02:00 by Til7701 · 5 comments

I have a follow up to #348 and updated my reproduction project at https://codeberg.org/Til7701/java-gi-inheritance-bug

Firstly, when setting a property from a template in an instance of a class that is extending a Java implementation, it fails with object of type de.til.A is not an instance of de.til.B which you should see when running the example in the current state.

If you remove the line <property name="mode">discrete</property> in window.ui it can build the object from the template, but fails to put the instance into the field in the AppWindow giving the following message: java-gi-CRITICAL **: 20:32:49.332: Cannot get template child b in class de.til.AppWindow: Can not set de.til.B field de.til.AppWindow.b to de.til.A

I have a follow up to #348 and updated my reproduction project at https://codeberg.org/Til7701/java-gi-inheritance-bug Firstly, when setting a property from a template in an instance of a class that is extending a Java implementation, it fails with `object of type de.til.A is not an instance of de.til.B` which you should see when running the example in the current state. If you remove the line `<property name="mode">discrete</property>` in `window.ui` it can build the object from the template, but fails to put the instance into the field in the `AppWindow` giving the following message: `java-gi-CRITICAL **: 20:32:49.332: Cannot get template child b in class de.til.AppWindow: Can not set de.til.B field de.til.AppWindow.b to de.til.A`
Owner

Thanks for the reports! I'll have a look.

Thanks for the reports! I'll have a look.
Owner

I found the cause of the issue; thanks again for reporting this.

If you want a release for this soon, let me know, I can push a snapshot or minor release.

I found the cause of the issue; thanks again for reporting this. If you want a release for this soon, let me know, I can push a snapshot or minor release.
Author

Any form of release would be amazing to test. Thanks for the quick response.

Any form of release would be amazing to test. Thanks for the quick response.
Owner

I published snapshot release 0.15.1-SNAPSHOT

For snapshot dependencies, add https://central.sonatype.com/repository/maven-snapshots/ to the repositories in your build script.

Please let me know if any (other) issues come up!

I published snapshot release 0.15.1-SNAPSHOT For snapshot dependencies, add https://central.sonatype.com/repository/maven-snapshots/ to the repositories in your build script. Please let me know if any (other) issues come up!
jwharm reopened this issue 2026-04-20 20:10:06 +02:00
Author

Everything seems to work now.

Everything seems to work now.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
java-gi/java-gi#351
No description provided.