Re: [Vala] error with arraylist and class



Thanks,

yes it is in dbus object, but if I change it to array of feed, I get
same error

server.vala:44.9-44.12: error: GVariant serialization of type `Feed' is
not supported
        public Feed[] get_all_feeds() 




V Streda, 23. marec 2011 o 12:52 +0100, Marco Trevisan (Treviño)
napísal(a):
Il giorno lun, 21/03/2011 alle 21.10 +0100, Pavol Klačanský ha scritto:
Hi, this line reports me error

"Feed" is class

"public Gee.ArrayList<Feed?> get_all_feeds() {"

this error

server.vala:44.9-44.28: error: GVariant serialization of type
`Gee.ArrayList<Feed?>' is not supported
    public Gee.ArrayList<Feed?> get_all_feeds() {



Is that method into a dbus object? In that case the return type should
be gvariant serializable (and in this case it could be an array of Feed)
to work. If you don't want to export the method do dbus, make it private
or dbus visible=false.


_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]