DBus interfaces have name clashes with interfaces

Bug #1453204 reported by Mario Costa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-java (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

I'm writing a java for packagekit dbus deamon (http://packages.ubuntu.com/trusty/packagekit)

The daemon exports tow interfaces:

1- src/org.freedesktop.PackageKit.xml
2 - src/org.freedesktop.PackageKit.Transaction.xml

The first, using the CreateInterface tool, instantiates an interface classes, see attach code

3.1 - First file creates interface PackageKit in package org.freedesktop.

3.2 - Second file creates in package interface Transaction in package org.freedesktop.PackageKit

3.2.1 - In interface Transaction, a Transaction static inner class is created, which also has a clash with the outer class.

Any suggestion on how to solve this !?

It seems that, the specification of the DBus protocol, are not completely compatible with the port to Java.
It may seem to work fine when defining and exporting objects from java clean code, to interoperate with other applications in other languages (C/C++/Python ... etc), but is does not have mechanisms implemented to deal with conflicts in DBus identifiers, and the language representation.

My guess is that there should be a mapping layer do deal with these mismatches ...

Any help is appreciated, hopefully used to improve the dbus-java interface...

Thanks,
mc

Revision history for this message
Mario Costa (mario-silva-costa) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.