From a3adaaa54400cbe5c80e9b11272b55d094f24613 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Wed, 28 May 2008 20:07:46 +0000 Subject: [PATCH] Don't generate default creation method for abstract classes, patch by MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-05-28 Juerg Billeter * vala/valaparser.vala: Don't generate default creation method for abstract classes, patch by Marc-André Lureau, fixes bug 531190 svn path=/trunk/; revision=1470 --- ChangeLog | 7 +++++++ vala/valaparser.vala | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f4a6402..35271eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-05-28 Jürg Billeter + * vala/valaparser.vala: + + Don't generate default creation method for abstract classes, + patch by Marc-André Lureau, fixes bug 531190 + +2008-05-28 Jürg Billeter + * vala/valanamespace.vala: * vala/valaparser.vala: diff --git a/vala/valaparser.vala b/vala/valaparser.vala index 3ecf807..e944624 100644 --- a/vala/valaparser.vala +++ b/vala/valaparser.vala @@ -1939,7 +1939,7 @@ public class Vala.Parser : CodeVisitor { // ensure there is always a default construction method if (!scanner.source_file.external_package - && !cl.is_static + && !cl.is_static && !cl.is_abstract && cl.default_construction_method == null) { var m = new CreationMethod (cl.name, null, cl.source_reference); m.binding = MemberBinding.STATIC; -- 2.7.4