Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register interfaces and enums #163

Merged
merged 24 commits into from
Dec 12, 2024
Merged

Conversation

jwharm
Copy link
Owner

@jwharm jwharm commented Dec 12, 2024

Add support for registering Java interfaces and enums in the GObject type system.
The API didn't change, but it is now possible to use Types.register(klazz) where klazz is a Java interface or enum, and it will do what was expected.

Fixes #127

jwharm and others added 24 commits November 17, 2024 21:59
Removed the `reference` counter field because there can always be only one single instance that has ownership.

Clarified the javadoc comments and improved some formatting.

Moved the call to `g_free()` down, below the calls to `g_boxed_free()` and the specialized free-function, to make it more clear that it is a fallback case.
The GLib testcases are now in the package that corresponds to the functionality under test (io.github.jwharm.javagi.interop).
Bumps the non-breaking-changes group with 1 update: org.gradle.toolchains.foojay-resolver-convention.


Updates `org.gradle.toolchains.foojay-resolver-convention` from 0.8.0 to 0.9.0

---
updated-dependencies:
- dependency-name: org.gradle.toolchains.foojay-resolver-convention
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: non-breaking-changes
...

Signed-off-by: dependabot[bot] <[email protected]>
The testcase now uses a much broader search term so it should work on most systems.
@jwharm jwharm merged commit dac08b2 into main Dec 12, 2024
@jwharm jwharm deleted the 127-register-interfaces-and-enums branch December 12, 2024 19:19
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.

Register interfaces and enums
1 participant