Catch linkage error
This commit is contained in:
parent
5c62191f3b
commit
a17e1f473a
@ -240,8 +240,8 @@ public class ASTToTargetAST {
|
||||
);
|
||||
}
|
||||
|
||||
private static final Map<String, FunNGenerator.GenericParameters> usedFunN = new HashMap<>();
|
||||
private static final Set<Integer> usedFunNSuperTypes = new HashSet<>();
|
||||
private final Map<String, FunNGenerator.GenericParameters> usedFunN = new HashMap<>();
|
||||
private final Set<Integer> usedFunNSuperTypes = new HashSet<>();
|
||||
|
||||
public Map<String, byte[]> auxiliaries = new HashMap<>();
|
||||
|
||||
@ -295,7 +295,9 @@ public class ASTToTargetAST {
|
||||
try {
|
||||
classLoader.findClass(superClassName);
|
||||
} catch (ClassNotFoundException e) {
|
||||
classLoader.loadClass(code);
|
||||
try {
|
||||
classLoader.loadClass(code);
|
||||
} catch (LinkageError ignored) {}
|
||||
}
|
||||
auxiliaries.put(superClassName, code);
|
||||
}
|
||||
@ -306,7 +308,9 @@ public class ASTToTargetAST {
|
||||
try {
|
||||
classLoader.findClass(className);
|
||||
} catch (ClassNotFoundException e) {
|
||||
classLoader.loadClass(code);
|
||||
try {
|
||||
classLoader.loadClass(code);
|
||||
} catch (LinkageError ignored) {}
|
||||
}
|
||||
usedFunN.put(className, gep);
|
||||
auxiliaries.put(className, code);
|
||||
|
Loading…
Reference in New Issue
Block a user