From bb9c6b7b88f90ed292787115a5c6a37521b70009 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Tue, 5 Mar 2013 13:33:58 +0400 Subject: [PATCH] Logging fqNames in exception messages --- .../lang/descriptors/impl/TypeParameterDescriptorImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/descriptors/impl/TypeParameterDescriptorImpl.java b/compiler/frontend/src/org/jetbrains/jet/lang/descriptors/impl/TypeParameterDescriptorImpl.java index b7591d71f99..0785d3f1554 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/descriptors/impl/TypeParameterDescriptorImpl.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/descriptors/impl/TypeParameterDescriptorImpl.java @@ -22,6 +22,7 @@ import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor; import org.jetbrains.jet.lang.descriptors.DeclarationDescriptorVisitor; import org.jetbrains.jet.lang.descriptors.TypeParameterDescriptor; import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor; +import org.jetbrains.jet.lang.resolve.DescriptorUtils; import org.jetbrains.jet.lang.resolve.name.Name; import org.jetbrains.jet.lang.resolve.scopes.JetScope; import org.jetbrains.jet.lang.resolve.scopes.LazyScopeAdapter; @@ -108,8 +109,7 @@ public class TypeParameterDescriptorImpl extends DeclarationDescriptorNonRootImp } private String nameForAssertions() { - DeclarationDescriptor owner = getContainingDeclaration(); - return getName() + " declared in " + (owner == null ? "" : owner.getName()); + return getName() + " declared in " + DescriptorUtils.getFQName(getContainingDeclaration()); } public void setInitialized() {