From 028274b9349b890421792f74d39ace43c9fe2109 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 3 Dec 2013 21:16:01 +0400 Subject: [PATCH] Don't assert that class is found in BindingContext This isn't true when light classes are generated, according to other such checks in the same file #KT-4276 Fixed --- .../jet/codegen/binding/CodegenAnnotatingVisitor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java b/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java index e6e07330b09..f66157d7303 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/binding/CodegenAnnotatingVisitor.java @@ -288,7 +288,8 @@ class CodegenAnnotatingVisitor extends JetVisitorVoid { @Override public void visitDelegationToSuperCallSpecifier(@NotNull JetDelegatorToSuperCall call) { ClassDescriptorWithState state = peekFromStack(classStack); - assert state != null : "Class descriptor should be recorded before " + call + " processing"; + // working around a problem with shallow analysis + if (state == null) return; state.setDelegationToSuperCall(true); super.visitDelegationToSuperCallSpecifier(call); state.setDelegationToSuperCall(false);