core: fix imports for inner classes with same names
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package jadx.samples;
|
||||
|
||||
import jadx.samples.otherpkg.C.E;
|
||||
import jadx.samples.otherpkg.D;
|
||||
|
||||
public class TestImports2 extends AbstractTest {
|
||||
|
||||
public Object f1() {
|
||||
return new E() {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "C.E";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public Object f2() {
|
||||
return new D.E() {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "D.E";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static class X1 extends E {
|
||||
}
|
||||
|
||||
public static class X2 extends D.E {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean testRun() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new TestImports2().testRun();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package jadx.samples.otherpkg;
|
||||
|
||||
public class C {
|
||||
public static class E {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package jadx.samples.otherpkg;
|
||||
|
||||
public class D {
|
||||
public static class E {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user