141 lines
6.2 KiB
Java
141 lines
6.2 KiB
Java
package o;
|
|
|
|
/* renamed from: o.gbC, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C14887gbC {
|
|
public static final gbA c;
|
|
|
|
static {
|
|
gbA gba;
|
|
Object newInstance;
|
|
Object newInstance2;
|
|
int d = d();
|
|
if (d >= 65544 || d < 65536) {
|
|
try {
|
|
try {
|
|
newInstance = Class.forName("o.gbG").newInstance();
|
|
C14957gcv.c(newInstance, "");
|
|
} catch (ClassNotFoundException unused) {
|
|
}
|
|
} catch (ClassNotFoundException unused2) {
|
|
Object newInstance3 = Class.forName("kotlin.internal.JRE8PlatformImplementations").newInstance();
|
|
C14957gcv.c(newInstance3, "");
|
|
try {
|
|
if (newInstance3 == null) {
|
|
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
|
}
|
|
gba = (gbA) newInstance3;
|
|
} catch (ClassCastException e) {
|
|
ClassLoader classLoader = newInstance3.getClass().getClassLoader();
|
|
ClassLoader classLoader2 = gbA.class.getClassLoader();
|
|
if (C14957gcv.b(classLoader, classLoader2)) {
|
|
throw e;
|
|
}
|
|
StringBuilder sb = new StringBuilder("Instance class was loaded from a different classloader: ");
|
|
sb.append(classLoader);
|
|
sb.append(", base type classloader: ");
|
|
sb.append(classLoader2);
|
|
throw new ClassNotFoundException(sb.toString(), e);
|
|
}
|
|
}
|
|
try {
|
|
if (newInstance == null) {
|
|
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
|
}
|
|
gba = (gbA) newInstance;
|
|
c = gba;
|
|
} catch (ClassCastException e2) {
|
|
ClassLoader classLoader3 = newInstance.getClass().getClassLoader();
|
|
ClassLoader classLoader4 = gbA.class.getClassLoader();
|
|
if (C14957gcv.b(classLoader3, classLoader4)) {
|
|
throw e2;
|
|
}
|
|
StringBuilder sb2 = new StringBuilder("Instance class was loaded from a different classloader: ");
|
|
sb2.append(classLoader3);
|
|
sb2.append(", base type classloader: ");
|
|
sb2.append(classLoader4);
|
|
throw new ClassNotFoundException(sb2.toString(), e2);
|
|
}
|
|
}
|
|
if (d >= 65543 || d < 65536) {
|
|
try {
|
|
try {
|
|
newInstance2 = Class.forName("o.gby").newInstance();
|
|
C14957gcv.c(newInstance2, "");
|
|
try {
|
|
} catch (ClassCastException e3) {
|
|
ClassLoader classLoader5 = newInstance2.getClass().getClassLoader();
|
|
ClassLoader classLoader6 = gbA.class.getClassLoader();
|
|
if (C14957gcv.b(classLoader5, classLoader6)) {
|
|
throw e3;
|
|
}
|
|
StringBuilder sb3 = new StringBuilder("Instance class was loaded from a different classloader: ");
|
|
sb3.append(classLoader5);
|
|
sb3.append(", base type classloader: ");
|
|
sb3.append(classLoader6);
|
|
throw new ClassNotFoundException(sb3.toString(), e3);
|
|
}
|
|
} catch (ClassNotFoundException unused3) {
|
|
Object newInstance4 = Class.forName("kotlin.internal.JRE7PlatformImplementations").newInstance();
|
|
C14957gcv.c(newInstance4, "");
|
|
try {
|
|
if (newInstance4 == null) {
|
|
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
|
}
|
|
gba = (gbA) newInstance4;
|
|
} catch (ClassCastException e4) {
|
|
ClassLoader classLoader7 = newInstance4.getClass().getClassLoader();
|
|
ClassLoader classLoader8 = gbA.class.getClassLoader();
|
|
if (C14957gcv.b(classLoader7, classLoader8)) {
|
|
throw e4;
|
|
}
|
|
StringBuilder sb4 = new StringBuilder("Instance class was loaded from a different classloader: ");
|
|
sb4.append(classLoader7);
|
|
sb4.append(", base type classloader: ");
|
|
sb4.append(classLoader8);
|
|
throw new ClassNotFoundException(sb4.toString(), e4);
|
|
}
|
|
}
|
|
} catch (ClassNotFoundException unused4) {
|
|
}
|
|
if (newInstance2 == null) {
|
|
throw new NullPointerException("null cannot be cast to non-null type kotlin.internal.PlatformImplementations");
|
|
}
|
|
gba = (gbA) newInstance2;
|
|
c = gba;
|
|
}
|
|
gba = new gbA();
|
|
c = gba;
|
|
}
|
|
|
|
private static final int d() {
|
|
String property = System.getProperty("java.specification.version");
|
|
if (property == null) {
|
|
return 65542;
|
|
}
|
|
String str = property;
|
|
int a = gdZ.a((CharSequence) str, '.', 0, false);
|
|
if (a < 0) {
|
|
try {
|
|
return Integer.parseInt(property) << 16;
|
|
} catch (NumberFormatException unused) {
|
|
return 65542;
|
|
}
|
|
}
|
|
int i = a + 1;
|
|
int a2 = gdZ.a((CharSequence) str, '.', i, false);
|
|
if (a2 < 0) {
|
|
a2 = property.length();
|
|
}
|
|
String substring = property.substring(0, a);
|
|
C14957gcv.c((Object) substring, "");
|
|
String substring2 = property.substring(i, a2);
|
|
C14957gcv.c((Object) substring2, "");
|
|
try {
|
|
return (Integer.parseInt(substring) << 16) + Integer.parseInt(substring2);
|
|
} catch (NumberFormatException unused2) {
|
|
return 65542;
|
|
}
|
|
}
|
|
}
|