Unable to create HashTable with org.gnome.secret.SchemaAttributeType as value #297
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi#297
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?
If I want to create a schema using the libsecret bindings the following has to be done:
However, this is currently not possible because inserting into the table fails with an assertion error:
Java-GI version: 0.13.0-RC1
Last weekend I started experimenting a bit, and added support for enum values in hashtables in the enum-hashtable branch. I'm not completely satisfied with it though.
The reason I'm not satisfied with it yet, is that the solution in the new branch adds a static
of(MemorySegment)function in all enum/flags classes. I'd rather read the enum value from memory somewhere else and simply call the existingof(int)functions, but that doesn't play well with the HashTable constructor...Tangentially related: all flags classes have
of(int)functions, just like the enumeration classes, but on second thought, I think those should actually return aSet<FooFlags>instead of a singleFooFlagsvalue. For example: ApplicationFlags.of(int)) would error out when the input value isNON_UNIQUE | HANDLES_COMMAND_LINE.