fix: detect loaded class duplication (#1107)

This commit is contained in:
Skylot
2021-01-29 11:31:00 +00:00
parent 3437888964
commit c93e7fb9cd
2 changed files with 18 additions and 2 deletions
@@ -82,9 +82,11 @@ public class JavaConvertLoader {
.filter(aarMatcher::matches)
.forEach(path -> ZipSecurity.readZipEntries(path.toFile(), (entry, in) -> {
try {
if (entry.getName().endsWith(".jar")) {
String entryName = entry.getName();
if (entryName.endsWith(".jar")) {
Path tempJar = saveInputStreamToFile(in, ".jar");
result.addTempPath(tempJar);
LOG.debug("Loading jar: {} ...", entryName);
convertJar(result, tempJar);
}
} catch (Exception e) {