From 2d36f30d77a31e027fcbb4c45ec091d4e78dd471 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Wed, 18 Jan 2012 12:10:30 +0400 Subject: [PATCH] fix compilation of testlib agains stdlib.jar --- .../jetbrains/jet/codegen/ExpressionCodegen.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java b/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java index 16311b49ede..9f8655b0f41 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/ExpressionCodegen.java @@ -1092,11 +1092,8 @@ public class ExpressionCodegen extends JetVisitor { } } } - if(!(containingDeclaration instanceof JavaNamespaceDescriptor)) - getter = typeMapper.mapGetterSignature(propertyDescriptor, OwnerKind.IMPLEMENTATION).getJvmMethodSignature().getAsmMethod(); - else - getter = null; - + getter = typeMapper.mapGetterSignature(propertyDescriptor, OwnerKind.IMPLEMENTATION).getJvmMethodSignature().getAsmMethod(); + if (propertyDescriptor.getGetter() == null) { getter = null; } @@ -1106,12 +1103,8 @@ public class ExpressionCodegen extends JetVisitor { setter = null; } else { - if(!(containingDeclaration instanceof JavaNamespaceDescriptor)) { - JvmPropertyAccessorSignature jvmMethodSignature = typeMapper.mapSetterSignature(propertyDescriptor, OwnerKind.IMPLEMENTATION); - setter = jvmMethodSignature != null ? jvmMethodSignature.getJvmMethodSignature().getAsmMethod() : null; - } else { - setter = null; - } + JvmPropertyAccessorSignature jvmMethodSignature = typeMapper.mapSetterSignature(propertyDescriptor, OwnerKind.IMPLEMENTATION); + setter = jvmMethodSignature != null ? jvmMethodSignature.getJvmMethodSignature().getAsmMethod() : null; if (propertyDescriptor.getSetter() == null) { setter = null;