Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Enum could not be restored: Init of enum uses external variables #2042

Closed
nitram84 opened this issue Nov 12, 2023 · 1 comment
Closed
Labels
bug Core Issues in jadx-core module

Comments

@nitram84
Copy link
Contributor

Issue details

The enum adrian.adbm.e.l (deobfuscated: adrian.adbm.p004e.EnumC0096l) of this version https://apkpure.com/database-modeler-lite/adrian.adbm/download/1.2 can't be restored with latest git:

/* JADX WARN: Enum visitor error
jadx.core.utils.exceptions.JadxRuntimeException: Init of enum l uses external variables
	at jadx.core.dex.visitors.EnumVisitor.createEnumFieldByConstructor(EnumVisitor.java:444)
	at jadx.core.dex.visitors.EnumVisitor.processEnumFieldByRegister(EnumVisitor.java:391)
	at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromFilledArray(EnumVisitor.java:320)
	at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromInsn(EnumVisitor.java:258)
	at jadx.core.dex.visitors.EnumVisitor.convertToEnum(EnumVisitor.java:151)
	at jadx.core.dex.visitors.EnumVisitor.visit(EnumVisitor.java:100)
 */
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* renamed from: adrian.adbm.e.l */
/* loaded from: classes.dex */
public final class EnumC0096l {

An earlier version (https://apkpure.com/database-modeler-lite/adrian.adbm/download/1.1) of that enum adrian.adbm.e.k (deobfuscated: adrian.adbm.p049e.EnumC0304k) could be restored without problems.

Relevant log output or stacktrace

No response

Provide sample and class/method full name

error in adrian.adbm.e.l (deobfuscated: adrian.adbm.p004e.EnumC0096l) in apk version 1.2
adrian.adbm.e.k (deobfuscated: adrian.adbm.p049e.EnumC0304k) as reference in apk version 1.1

Jadx version

latest git version

@nitram84 nitram84 added bug Core Issues in jadx-core module labels Nov 12, 2023
@skylot
Copy link
Owner

skylot commented Nov 16, 2023

Fixed.

@skylot skylot closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Core Issues in jadx-core module
Projects
None yet
Development

No branches or pull requests

2 participants