diff options
Diffstat (limited to 'plugins/base')
3 files changed, 3 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt index a444d192..3b00320c 100644 --- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt +++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt @@ -244,6 +244,7 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog is Void -> link("Unit", DriOfUnit) is PrimitiveJavaType -> signatureForProjection(p.translateToKotlin()) is Dynamic -> text("dynamic") + is UnresolvedBound -> text(p.name) } private fun funType(dri: DRI, sourceSets: Set<SourceSetData>, type: TypeConstructor) = diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt index a5fa4189..6ec5c4f5 100644 --- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt +++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt @@ -303,7 +303,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator { when (type) { is PsiClassReferenceType -> { val resolved: PsiClass = type.resolve() - ?: throw IllegalStateException("${type.presentableText} cannot be resolved") + ?: return UnresolvedBound(type.presentableText) if (resolved.qualifiedName == "java.lang.Object") { JavaObject } else { diff --git a/plugins/base/src/test/kotlin/utils/TestUtils.kt b/plugins/base/src/test/kotlin/utils/TestUtils.kt index 1591f4f7..44c23e96 100644 --- a/plugins/base/src/test/kotlin/utils/TestUtils.kt +++ b/plugins/base/src/test/kotlin/utils/TestUtils.kt @@ -74,4 +74,5 @@ val Bound.name: String? is JavaObject -> "Object" is Void -> "void" is Dynamic -> "dynamic" + is UnresolvedBound -> "<ERROR CLASS>" }
\ No newline at end of file |