Skip to content

Conversation

@jwharm
Copy link
Owner

@jwharm jwharm commented Oct 25, 2025

The address of a java-gi proxy class must be accessed with the handle() method (as specified in the Proxy interface). The actual address is stored in the address field of the ProxyInstance class. That field had private visibility until java-gi 0.12, when it was changed to public visibility. I want to revert that, so it is now marked as deprecated, and will be changed to private visibility in a future release.

The address of a java-gi proxy class must be accessed with the `handle()` method (as specified in the Proxy interface). The actual address is stored in the `address` field of the ProxyInstance class. That field had private visibility until java-gi 0.12, when it was changed to public visibility. I want to revert that, so it is now marked as deprecated, and will be changed to private visibility in a future release.
@jwharm jwharm merged commit c5f394f into main Oct 25, 2025
@jwharm jwharm deleted the private-address-field branch October 25, 2025 14:56
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