Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
baa14e9d
Commit
baa14e9d
authored
Mar 21, 2013
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle super call processing error
parent
918e566c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
ModVisitor.java
src/main/java/jadx/dex/visitors/ModVisitor.java
+16
-9
No files found.
src/main/java/jadx/dex/visitors/ModVisitor.java
View file @
baa14e9d
...
...
@@ -19,6 +19,7 @@ import jadx.dex.trycatch.ExcHandlerAttr;
import
jadx.dex.trycatch.ExceptionHandler
;
import
jadx.dex.trycatch.TryCatchBlock
;
import
jadx.utils.BlockUtils
;
import
jadx.utils.exceptions.JadxRuntimeException
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -61,8 +62,9 @@ public class ModVisitor extends AbstractVisitor {
MethodInfo
callMth
=
inv
.
getCallMth
();
if
(
callMth
.
isConstructor
())
{
ConstructorInsn
co
=
new
ConstructorInsn
(
mth
,
inv
);
// don't call 'super' if parent 'Object'
if
(
co
.
isSuper
())
{
try
{
// don't call 'super' if parent 'Object'
if
(!
co
.
getClassType
().
getFullName
().
equals
(
Consts
.
CLASS_OBJECT
))
{
for
(
int
j
=
0
;
j
<
co
.
getArgsCount
();
j
++)
{
InsnArg
arg
=
co
.
getArg
(
j
);
...
...
@@ -74,6 +76,11 @@ public class ModVisitor extends AbstractVisitor {
mth
.
setSuperCall
(
co
);
}
remover
.
add
(
insn
);
}
catch
(
JadxRuntimeException
e
)
{
// inline args into super fail
LOG
.
warn
(
"Can't inline args into super call: "
+
inv
+
", mth: "
+
mth
);
replaceInsn
(
block
,
i
,
co
);
}
}
else
if
(
co
.
isThis
()
&&
co
.
getArgsCount
()
==
0
)
{
MethodNode
defCo
=
mth
.
getParentClass
().
searchMethodById
(
co
.
getCallMth
().
getShortId
());
if
(
defCo
==
null
||
defCo
.
isNoCode
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment