From: Juerg Billeter Date: Wed, 28 May 2008 20:07:46 +0000 (+0000) Subject: Don't generate default creation method for abstract classes, patch by X-Git-Tag: VALA_0_3_3~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3adaaa54400cbe5c80e9b11272b55d094f24613;p=platform%2Fupstream%2Fvala.git Don't generate default creation method for abstract classes, patch by 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 --- 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;