Skip to content

Marshalling a Map with a generic type does not work #269

@vicr123

Description

@vicr123

Example: In the following interface (in Kotlin)

@DBusInterfaceName("org.freedesktop.portal.FileChooser")
public interface DBusFileChooserInterface : DBusInterface {
    fun OpenFile(parentWindow: String, title: String, options: Map<String, Variant<*>>): ObjectPath;
}

The library marshals the options parameter as an a{s}, not an a{sv} as expected.

The root cause seems to be that the marshalling code does not handle a WildcardType:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions