Public bug reported:

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

** Affects: dbus-java (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Generated source code, of CreateInterface"
   
https://bugs.launchpad.net/bugs/1453204/+attachment/4393717/+files/packagekit.zip

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1453204

Title:
  DBus interfaces have name clashes with interfaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus-java/+bug/1453204/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to