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 671459 - Regression: cannot init TlsCertificate any more in 0.15.2
Regression: cannot init TlsCertificate any more in 0.15.2
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GLib
0.15.x
Other Linux
: Immediate major
: ---
Assigned To: Vala maintainers
Vala maintainers
regression
Depends on:
Blocks:
 
 
Reported: 2012-03-06 12:24 UTC by Marcin Lewandowski
Modified: 2012-03-09 20:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcin Lewandowski 2012-03-06 12:24:54 UTC
Hi,

I've noticed that TlsCertificate class has became abstract in 0.15 vapi.

That code does not work any more

var secure_certificate = new TlsCertificate.from_file("server.pem");

resuting in error: Can't create instance of abstract class `GLib.TlsCertificate'

Tested in 0.15.2, used to work in 0.14

Seems that this is regression.
Comment 1 Luca Bruno 2012-03-09 20:42:45 UTC
commit 881af7da033d9b9c804e72d1e0bdb208647054c9
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Fri Mar 9 21:34:45 2012 +0100

    gio-2.0: Mark TlsCertificate as a concrete class
    
    Keep the class concrete for backward compatibility.
    
    Fixes bug 671459.

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.