KT-45777: Don't compute snapshots for inaccessible classes
Also visit a class file with ASM once to extract all information we need in advance, instead of visiting the class file each time some piece of info is needed.
This commit is contained in:
committed by
teamcityserver
parent
f52be5f471
commit
6bee7948e7
+2
-2
@@ -320,14 +320,14 @@ public abstract class FileBasedKotlinClass implements KotlinJvmBinaryClass {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static ClassId resolveNameByInternalName(@NotNull String name, @NotNull InnerClassesInfo innerClasses) {
|
||||
public static ClassId resolveNameByInternalName(@NotNull String name, @NotNull InnerClassesInfo innerClasses) {
|
||||
if (!name.contains("$")) {
|
||||
return ClassId.topLevel(new FqName(name.replace('/', '.')));
|
||||
}
|
||||
|
||||
List<String> classes = new ArrayList<>(1);
|
||||
boolean local = false;
|
||||
|
||||
|
||||
while (true) {
|
||||
OuterAndInnerName outer = innerClasses.get(name);
|
||||
if (outer == null) break;
|
||||
|
||||
Reference in New Issue
Block a user