hypfvieh / dbus-java

Improved version of java DBus library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/)
https://hypfvieh.github.io/dbus-java/
MIT License
185 stars 73 forks source link

Exported objects that use `@DBusBoundProperty` only do not export `org.freedesktop.DBus.Properties` #252

Closed brett-smith closed 7 months ago

brett-smith commented 7 months ago

If an interface uses this annotation, but doesn't implement org.freedesktop.dbus.interfaces.Properties, then no introspection data will be generated for org.freedesktop.DBus.Properties.

This patch will automatically generate the introspection data for this interface if a @DBusBoundProperty annotation is found on any method in the class.

Note that this doesn't actually stop the properties from working, but this generic interface should always be exported. All other services do.

After fix ...

after-export-fix

Before fix ..

before-export-fix