Prepare to make ProxyInstance.address field private again #286

Merged
jwharm merged 1 commit from private-address-field into main 2025-10-25 16:56:25 +02:00
jwharm commented 2025-10-25 16:56:13 +02:00 (Migrated from github.com)

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.
Sign in to join this conversation.
No description provided.