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 733288 - Fast VAPI generation can contain references to private methods
Fast VAPI generation can contain references to private methods
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: general
0.24.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-17 03:52 UTC by Robert Ancell
Modified: 2018-05-22 15:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Ancell 2014-07-17 03:52:17 UTC
If you have a const delegate that refers to a private method this reference will show up in the .vapi.

For example:
---
public delegate void Callback ();
public class Foo
{
    public const Callback cb = private_function;
    private void private_function ()
    {
    }
}
---

$ valac --fast-vapi=foo.vapi foo.vala

Will generate:
---
/* foo.vapi generated by valac 0.24.0, do not modify. */

using GLib;

public class Foo {
	public const Callback cb = private_function;
	public Foo ();
}
public delegate void Callback ();
---

Which doesn't work because 'private_function' is not defined.
Comment 1 GNOME Infrastructure Team 2018-05-22 15:13:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/461.