KT-2730 AssertionError at org.jetbrains.jet.codegen.AnnotationCodegen.genAnnotations(AnnotationCodegen.java:86)

#KT-2730 Fixed
This commit is contained in:
Andrey Breslav
2012-09-06 15:30:39 +04:00
parent 1441f742bb
commit fc90c775e9
4 changed files with 17 additions and 2 deletions
@@ -83,10 +83,10 @@ public abstract class AnnotationCodegen {
for (JetAnnotationEntry annotationEntry : annotationEntries) {
ResolvedCall<? extends CallableDescriptor> resolvedCall =
bindingContext.get(BindingContext.RESOLVED_CALL, annotationEntry.getCalleeExpression());
assert resolvedCall != null;
if (resolvedCall == null) continue; // Skipping annotations if they are not resolved. Needed for JetLightClass generation
AnnotationDescriptor annotationDescriptor = bindingContext.get(BindingContext.ANNOTATION, annotationEntry);
assert annotationDescriptor != null;
if (annotationDescriptor == null) continue; // Skipping annotations if they are not resolved. Needed for JetLightClass generation
JetType type = annotationDescriptor.getType();
genAnnotation(resolvedCall, type);