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

Remove intermediate TreeNodes when unexporting them instead of ignoring all intermediate TreeNodes during Introspection #104

Closed AsamK closed 4 years ago

AsamK commented 4 years ago

To make recursive object introspection possible, intermediate entries without a bound object can't just be ignored during introspection.

This PR provides an alternative fix for #80, to also remove the obsolete TreeNodes, when unexporting an object. The recursiveRemove method removes all TreeNodes that don't lead to exported object anymore.

Fixes #103