Java warning when calling DBusConnection.addSigHander in Java
binding
Matthew Johnson
dbus at matthew.ath.cx
Wed Apr 26 02:44:55 PDT 2006
On Tue, 25 Apr 2006, Tim Moloney wrote:
> I get a couple of warnings when compiling the following line of Java code
> inside Eclipse.
>
> this.connection.addSigHandler(Player.playingUriChanged.class, this);
>
> The warnings are:
> - Type safety: The expression of type RhythmboxDbusProxy needs unchecked
> conversion to conform to DBusSigHandler<T>
> - Type safety: Unchecked invocation addSigHandler(Class, DBusSigHandler) of
> the generic method addSigHandler(Class<T>, DBusSigHandler<T>) of type
> DBusConnection
>
> "Player" is the Java class generated by the CreateInterface application
> (which extends DBusSignal) and "this" refers to an instance of my
> RhythmboxDbusProxy class that implements DBusSigHandler.
Can you give me the implements line of RythmboxDBusProxy, it probably
needs to be declared as implements
DBusSigHandler<Player.playingUriChanged>
Matt
--
Matthew Johnson
http://www.matthew.ath.cx/
More information about the dbus
mailing list