Additional deep inheritance related errors #351
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi#351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.Bwhich you should see when running the example in the current state.If you remove the line
<property name="mode">discrete</property>inwindow.uiit can build the object from the template, but fails to put the instance into the field in theAppWindowgiving 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.AThanks for the reports! I'll have a look.
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.
Any form of release would be amazing to test. Thanks for the quick response.
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!
Everything seems to work now.