A clarifying assertion
This commit is contained in:
+3
@@ -1020,6 +1020,9 @@ public class JavaDescriptorResolver implements DependencyClassByQualifiedNameRes
|
|||||||
if (resolverNamespaceData == null) {
|
if (resolverNamespaceData == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if (resolverNamespaceData == ResolverNamespaceData.NEGATIVE) {
|
||||||
|
throw new IllegalStateException("This means that we are trying to create a Java package, but have a package with the same FQN defined in Kotlin");
|
||||||
|
}
|
||||||
JavaPackageScope scope = resolverNamespaceData.memberScope;
|
JavaPackageScope scope = resolverNamespaceData.memberScope;
|
||||||
if (scope == null) {
|
if (scope == null) {
|
||||||
throw new IllegalStateException("fqn: " + fqName);
|
throw new IllegalStateException("fqn: " + fqName);
|
||||||
|
|||||||
Reference in New Issue
Block a user