A clarifying assertion

This commit is contained in:
Andrey Breslav
2012-06-07 15:36:22 +04:00
parent a3e76832e3
commit 48460a8480
@@ -1020,6 +1020,9 @@ public class JavaDescriptorResolver implements DependencyClassByQualifiedNameRes
if (resolverNamespaceData == 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;
if (scope == null) {
throw new IllegalStateException("fqn: " + fqName);