GNOME Bugzilla – Bug 564449
valac emits calls to non-existing "g_data_input_stream_construct"
Last modified: 2010-03-22 20:39:44 UTC
Please describe the problem: This vala sample code causes valac emit calls to a non-existing method (g_data_input_stream_construct). No warnings are printed by valac. I'm expecting valac to either show a compilation error, or if this code is valid then emit code that gcc can compile. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 124628 [details] sample showing valac 0.5.2 emitting calls to non-existing method
Chaining up constructors is not supported yet for library classes.
Meanwhile, Vala emits an error for your test case: main.vala:8.3-8.32: error: chain up to `GLib.DataInputStream..new' not supported base (new MemoryInputStream()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The original issue remains open though.
(In reply to comment #3) > Meanwhile, Vala emits an error for your test case: > > main.vala:8.3-8.32: error: chain up to `GLib.DataInputStream..new' not > supported > base (new MemoryInputStream()); > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > The original issue remains open though. Can you elaborate? Chaining up is not supported due to GObject limitations. Vala now reports an error instead of generating invalid C code. GObject-style chain up is supported by using of Object (...); I'm closing this as duplicate. Feel free to reopen the bug if you think that's incorrect. *** This bug has been marked as a duplicate of bug 581362 ***