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 655526 - CONSTRUCT properties won't be deserialized
CONSTRUCT properties won't be deserialized
Status: RESOLVED FIXED
Product: json-glib
Classification: Core
Component: GObject
git master
Other Linux
: Normal normal
: ---
Assigned To: json-glib-maint
json-glib-maint
Depends on:
Blocks:
 
 
Reported: 2011-07-28 18:51 UTC by Varga Dániel
Modified: 2012-03-13 22:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Varga Dániel 2011-07-28 18:51:44 UTC
Occording to comment in the source GObject deserialization done it two pass: first pass for CONSTRUCT and CONSTRUCT_ONLY properties, then the others. However CONSTRUCT properties never deserialized as json_gobject_new skip but G_PARAM_CONSTRUCT_ONLY parameters. I think that CONSTRUCT properties should be deserialized as they serialized.

Reproduce the problem: change one the properties in test-serialize-full to CONSTRUCT and it will fail.

Thank you for your help.
Comment 1 Emmanuele Bassi (:ebassi) 2011-08-23 19:45:26 UTC
thanks, fixed in the master branch; it'll be available with JSON-GLib 0.14.0.
Comment 2 André Klapper 2012-03-13 22:08:24 UTC
[Fixing Default QA assignee for json-glib - see 613232#c1. Sorry for bugmail noise.]