diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java b/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java index 1b9549e09b9..6f7e50cf061 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/PropertyCodegen.java @@ -173,9 +173,10 @@ public class PropertyCodegen { JetExpression defaultValue = p.getDefaultValue(); if (defaultValue != null) { CompileTimeConstant constant = ExpressionCodegen.getCompileTimeConstant(defaultValue, bindingContext); - assert constant != null : "Default value for annotation parameter should be compile time value: " + defaultValue.getText(); - AnnotationCodegen annotationCodegen = AnnotationCodegen.forAnnotationDefaultValue(visitor, typeMapper); - annotationCodegen.generateAnnotationDefaultValue(constant, descriptor.getType()); + if (constant != null) { + AnnotationCodegen annotationCodegen = AnnotationCodegen.forAnnotationDefaultValue(visitor, typeMapper); + annotationCodegen.generateAnnotationDefaultValue(constant, descriptor.getType()); + } } visitor.visitEnd();