fix: class resolving issues (#867)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user