After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564449 - valac emits calls to non-existing "g_data_input_stream_construct"
valac emits calls to non-existing "g_data_input_stream_construct"
Status: RESOLVED DUPLICATE of bug 581362
Product: vala
Classification: Core
Component: Objects
0.5.x
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-14 08:12 UTC by Martin Olsson
Modified: 2010-03-22 20:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample showing valac 0.5.2 emitting calls to non-existing method (386 bytes, application/x-compressed-tar)
2008-12-14 08:13 UTC, Martin Olsson
Details

Description Martin Olsson 2008-12-14 08:12:16 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:
Comment 1 Martin Olsson 2008-12-14 08:13:29 UTC
Created attachment 124628 [details]
sample showing valac 0.5.2 emitting calls to non-existing method
Comment 2 Jürg Billeter 2008-12-14 12:25:49 UTC
Chaining up constructors is not supported yet for library classes.
Comment 3 Michael 'Mickey' Lauer 2009-10-08 12:20:18 UTC
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.
Comment 4 Jürg Billeter 2010-03-22 20:39:44 UTC
(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 ***