GNOME Bugzilla – Bug 726744
valac should inherit array_length and array_null_terminated from base method
Last modified: 2014-03-20 22:19:57 UTC
In vapi, I have: [CCode (array_length = false, array_null_terminated = true)] public abstract unowned string[] get_protocols (GLib.Type type); In my vala code, I have: public unowned string[] get_protocols(Type type) { return protocols; } In the generated c code, I expect: static gchar**my_streaming_source_real_get_protocols (GstURIHandler* base, GType type) However, the code generator generates: static gchar**my_streaming_source_real_get_protocols (GstURIHandler* base, GType type, int* result_length1)
I cannot reproduce the vfunc_name problem. Can you attach a test case please?
commit 42393d7aacf98e0e1657aadebdc8d4961db7a447 Author: Luca Bruno <lucabru@src.gnome.org> Date: Thu Mar 20 20:28:33 2014 +0100 codegen: Inherit array_length and array_null_terminated of methods Fixes bug 726744 This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. Closing in the while, feel free to open another bug about vfunc_name if there's any problem, but shouldn't with a recent vala compiler.