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 616355 - Scanner should warn/fail on invalid scope type
Scanner should warn/fail on invalid scope type
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-04-21 03:01 UTC by Zach Goldberg
Modified: 2015-02-07 16:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zach Goldberg 2010-04-21 03:01:18 UTC
If the library has an invalid scope annotation the scanner should warn or error, anything but be silent.  This causes libraries to get GI_SCOPE_TYPE_INVALID and have undefined behavior.  The user/library maintainer will find out rather far away from the annotations that something went wrong. 

Better to let them know right away that something is wrong, rather than to wait all the way to program runtime to find out their annotation is screwy.  I know you love this kind of bug Colin :)
Comment 1 Johan (not receiving bugmail) Dahlin 2010-09-06 16:33:01 UTC
This was recently fixed when Colin landed his scanner rewrite
Comment 2 André Klapper 2015-02-07 16:57:50 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]