-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use correct reference for replaced bridge constructor (#1441)
- Loading branch information
Showing
10 changed files
with
128 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
jadx-core/src/main/java/jadx/core/dex/attributes/nodes/MethodReplaceAttr.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package jadx.core.dex.attributes.nodes; | ||
|
||
import jadx.api.plugins.input.data.attributes.PinnedAttribute; | ||
import jadx.core.dex.attributes.AType; | ||
import jadx.core.dex.nodes.MethodNode; | ||
|
||
/** | ||
* Calls of method should be replaced by provided method (used for synthetic methods redirect) | ||
*/ | ||
public class MethodReplaceAttr extends PinnedAttribute { | ||
|
||
private final MethodNode replaceMth; | ||
|
||
public MethodReplaceAttr(MethodNode replaceMth) { | ||
this.replaceMth = replaceMth; | ||
} | ||
|
||
public MethodNode getReplaceMth() { | ||
return replaceMth; | ||
} | ||
|
||
@Override | ||
public AType<MethodReplaceAttr> getAttrType() { | ||
return AType.METHOD_REPLACE; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "REPLACED_BY: " + replaceMth; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters