well, that's fubar

This commit is contained in:
Jean-Marie Mineau 2025-05-12 15:32:39 +02:00
parent e9f28419c9
commit 5e25541da0
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
9 changed files with 487 additions and 94 deletions

View file

@ -39,6 +39,7 @@ public class Main {
public static void run(Activity ac, String clname, boolean hasCollision, boolean hasParent, String methodType) {
ClassLoader cl = Main.class.getClassLoader();
Class clz = null;
ClassLoader parent;
try {
Log.i("THESEUS", "clname: " + clname + ", hasCollision: " + hasCollision + ", hasParent: " + hasParent + ", methodType: " + methodType);
@ -99,7 +100,6 @@ public class Main {
}
}
Class clz = null;
if (hasCollision) {
clz = cl.loadClass("com.example.theseus.dynandref.Collider");
} else {
@ -243,6 +243,12 @@ public class Main {
};
} catch (Exception e) {
Log.e("THESEUS", "class loader name: " + cl.toString());
if (clz != null) {
Log.e("THESEUS", "declaring class loader name: " + clz.getClassLoader().toString());
}
//if methodType.equals("Factory Pattern Interface"){
// clz.getDeclaredConstructor().getDeclaringClass().getClassLoader();
//}
Log.e("THESEUS", "error:", e);
}
}