[PATCH] Vala doesn't produce fully-qualified ErrorType names
Submitted by Torrie Fischer
Link to original bug (#694712)
Description
Created attachment 237398 vala patch
If a method throws an error type from within a namespace of the same name, vala fails when trying to locate the symbol. The generated .vapi looks like this:
namespace Foo { namespace Tracker { public class Query { public override async void execute (Tracker.Sparql.Connection resources) throws GLib.IOError, Tracker.Sparql.Error, GLib.DBusError; } } }
This patch prepends global:: to the error types when the .vapi is generated:
namespace Foo { namespace Tracker { public class Query { public override async void execute (global::Tracker.Sparql.Connection resources) throws global::GLib.IOError, global::Tracker.Sparql.Error, global::GLib.DBusError; } } }
Patch 237398, "vala patch":
vala.patch