fix: class resolving issues (#867)

This commit is contained in:
Skylot
2020-02-29 19:24:01 +00:00
parent 49a82c8388
commit 5eec8f754d
2 changed files with 7 additions and 1 deletions
@@ -176,6 +176,12 @@ public class RootNode {
@Nullable
public ClassNode resolveClass(ArgType clsType) {
if (!clsType.isTypeKnown() || clsType.isGenericType()) {
return null;
}
if (clsType.getWildcardBound() == ArgType.WildcardBound.UNBOUND) {
return null;
}
if (clsType.isGeneric()) {
clsType = ArgType.object(clsType.getObject());
}
@@ -68,7 +68,7 @@ public class MethodUtils {
}
public boolean processMethodArgsOverloaded(ArgType startCls, MethodInfo mthInfo, @Nullable List<IMethodDetails> collectedMths) {
if (startCls == null) {
if (startCls == null || !startCls.isObject()) {
return false;
}
boolean isMthConstructor = mthInfo.isConstructor() || mthInfo.isClassInit();