Skip to content

Fix swig issue, add java sources to jar, do not delete java files when building for Python - #84

Merged
mjwybrow merged 2 commits into
mjwybrow:masterfrom
tczauderna:master
Oct 29, 2025
Merged

mjwybrow merged 2 commits into
mjwybrow:masterfrom
tczauderna:master

Conversation

@tczauderna

Copy link
Copy Markdown
Collaborator

Fix a swig issue with garbage collection and freeing memory in C++

  • rectangle objects are garbage collected and free by freeAssociatedObjects
  • this causes an issue with Swig 3 (it somehow work with Swig 2)
    Add java sources to the adaptagrams.jar
    Do not delete java files during clean up when building for Python

For many C++ objects the declaration of the desctructor is hidden but this was missing for rectangles. This causes an issue using Swig 3, rectangle objects get garbage collected and are freed by the freeAssociatedObjects method/function.
@mjwybrow
mjwybrow merged commit 840ebcf into mjwybrow:master Oct 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants