Coder Social home page Coder Social logo

Comments (3)

hypfvieh avatar hypfvieh commented on August 14, 2024

This is indeed a problem, but using Introspectable.class would not be suitable here.

The DBus spec says: "Objects instances may implement Introspect which returns an XML"...
It says 'may' not 'must'.

So the best effort we can do here is to use DBusInterface.class in case no proper interface was found before. This interface must be present on all exported objects.

I changes the code in DBusConnection so it takes care of the default DBus interfaces by looking into the correct package. I hope this will fix it.
If not suitable interface could be found, it will try DBusInterface. This may fail with a ClassCastException if it is not compatible (I guess all objects should be compatible, otherwise they wouldn't be published on DBus).

It would be great if you can provide a unit test cover this issue.

from dbus-java.

hypfvieh avatar hypfvieh commented on August 14, 2024

Is this issue resolved now?

from dbus-java.

haggish avatar haggish commented on August 14, 2024

Yes, it seems to work now without casting problems

from dbus-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.