[Vala] trunk fails compiling .vala files.



Dear Juerg, and others,

A trunk built from a vala 0.3.4 can not compile any program, giving the
following error.
----oxoxoxoxoxoxoxoxox----
(lt-valac:9022): GLib-GObject-WARNING **: invalid cast from
`GeeArrayList' to `GObject'

(lt-valac:9022): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
**
** ERROR:(arraylist.c:164):gee_array_list_real_get: assertion failed:
(index >= 0 && index < self->priv->_size)
----oxoxoxoxoxoxoxoxox----

I believe it is because of
------------------------------------------------------------------------
r1757 | juergbi | 2008-08-14 17:22:53 -0400 (Thu, 14 Aug 2008) | 5 lines

2008-08-14  Jürg Billeter  <j bitron ch>

        Don't derive from GObject in libvala where not necessary to improve
        compilation performance
----------------------

check gee/collection.c

$ grep G_OBJECT *.c
collection.c:   g_object_get (G_OBJECT (self), "size", &value, NULL);
map.c:  g_object_get (G_OBJECT (self), "size", &value, NULL);

Can anyone reproduce the problem? 

Best,


Yu





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