-
-
Notifications
You must be signed in to change notification settings - Fork 75
Description
First off: thanks for this great piece of work and the improvements coming in during the last couples of month. We're now using version 3.2.0.
I'm currently working on a java facade for connman (and ofono) and I'm facing the following issue:
The API for DBus interface net.connman.Service is described here https://github.com/aldebaran/connman/blob/master/doc/service-api.txt
The interface has a method SetProperty(string name, variant value). I want to pass a new IPv4.Configuration. The internal type of that value is dict, that should be defined in a Map<String, Variant<?>. By contract I need to define a Variant like new Variant(map) to pass it to the call of SetProperty. Doing this results in an exception with the following message:
Exception in thread "main" java.lang.IllegalArgumentException: Can't wrap class java.util.HashMap in an unqualified Variant (Exporting non-exportable type: class java.util.HashMap).
at org.freedesktop.dbus.types.Variant.<init>(Variant.java:54)
How would you solve this?