Re: Unexpected ClassCastException when passing generics

2014-07-17 Thread Vladimir Bokov
Thanks a lot! I really didn't get the sense of [L But still, I think it's very counterintuitive, I'd expect cast org.freedesktop.dbus.Message$StringMethodArgument to org.freedesktop.dbus.Message$MethodArgument[] error message (at least) or something more verbose than chars "[L" пятница, 18 июля

Re: Unexpected ClassCastException when passing generics

2014-07-17 Thread Sean Corfield
On Jul 17, 2014, at 11:18 AM, Vladimir Bokov wrote: > I'm trying to communicate with DBus via https://github.com/cathive/fx-dbus > java lib, but > passing an object which extends java abstract generic inner class complains, > that it cannot be cast > to parent class: > > ClassCastException Cann

Unexpected ClassCastException when passing generics

2014-07-17 Thread Vladimir Bokov
I'm trying to communicate with DBus via https://github.com/cathive/fx-dbus java lib, but passing an object which extends java abstract generic inner class complains, that it cannot be cast to parent class: ClassCastException Cannot cast org.freedesktop.dbus.Message$StringMethodArgument to [Lor