Skip to content

Commit

Permalink
fix: class resolving issues (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Feb 29, 2020
1 parent 49a82c8 commit 5eec8f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions jadx-core/src/main/java/jadx/core/dex/nodes/RootNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ public ClassNode resolveClass(ClassInfo clsInfo) {

@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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public ArgType getMethodGenericReturnType(BaseInvokeNode invokeNode) {
}

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();
Expand Down

0 comments on commit 5eec8f7

Please sign in to comment.