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

Probably need "sun.misc" import declaration in pom.xml #78

Closed s5uishida closed 4 years ago

s5uishida commented 4 years ago

I haven't confirmed the operation, but I think that "sun.misc" import declaration probably needs to be added in dbus-java-osgi/pom.xml.

<Import-Package> org.slf4j,
==>  sun.misc,
    org.eclipse.jdt.annotation;resolution:=optional 
</Import-Package>

When I checked bluez-dbus on OSGi, jnr-unixsocket depended on sun.misc, so the same situation will occur.

s5uishida commented 4 years ago

I confirmed that the "sun.misc" import declaration is necessary. Without this, the error was the same as for bluez-dbus-osgi.

NatAmundsen commented 4 years ago

I don't see jnr-unixsocket depending on sun.misc anymore in the latest release, and it doesn't provide that package, so now the use of sun.misc impedes compilation.