You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class a{
public static int length(){
return -1;
}
public static int length2 = -2;
}
public class Test{
static String a = "";
public static void main(String[] args){
for(int i=0;i<args.length;i++)a+=args[i];
System.out.println(a.length());
System.out.println(((a)null).length());
System.out.println(((a)null).length2);
}
}
the decompile result is
public class Test {
static String a = "";
public static void main(String[] strArr) {
for (String str : strArr) {
a += str;
}
System.out.println(a.length());
System.out.println(a.length());
System.out.println(a.length2);
}
}
Jadx ignores the existence of a variable with the same name, which may lead to semantic errors in the code. Is it possible to do simple identification, or to represent such code in the form of ((ClassName)null).variableName and ((ClassName)null).functionName() while decompiling?
Jadx version
1.5.0
Java version
1.8+
OS
Windows
Linux
macOS
The text was updated successfully, but these errors were encountered:
Issue details
For example, the source code is
the decompile result is
Jadx ignores the existence of a variable with the same name, which may lead to semantic errors in the code. Is it possible to do simple identification, or to represent such code in the form of
((ClassName)null).variableName
and((ClassName)null).functionName()
while decompiling?Jadx version
1.5.0
Java version
1.8+
OS
The text was updated successfully, but these errors were encountered: