[vala/0.10: 12/38] Fix handling of exceptions in property accessors
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vala/0.10: 12/38] Fix handling of exceptions in property accessors
- Date: Sat,  4 Sep 2010 15:02:26 +0000 (UTC)
commit c7c3cbf16bbb6269049d668310beb356203d69c2
Author: Evan Nemerson <evan coeus-group com>
Date:   Mon Aug 16 14:50:27 2010 -0700
    Fix handling of exceptions in property accessors
    
    Fixes bug 627090.
 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index c3ac328..f69cb92 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3392,7 +3392,7 @@ public class Vala.CCodeBaseModule : CodeGenerator {
 
 		var sym = current_symbol;
 
-		while (!(sym is Method) && sym.scope.lookup (local.name) == null) {
+		while (!(sym is Method || sym is PropertyAccessor) && sym.scope.lookup (local.name) == null) {
 			if ((sym.parent_node is TryStatement && ((TryStatement) sym.parent_node).finally_body != null) ||
 				(sym.parent_node is CatchClause && ((TryStatement) sym.parent_node.parent_node).finally_body != null)) {
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]