Skip to content

Commit

Permalink
Merge branch 'master' into rpau-asm
Browse files Browse the repository at this point in the history
  • Loading branch information
rpau committed Apr 17, 2018
2 parents bb63928 + d7da813 commit 49c6e2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ protected Class<?> findClass(String name) throws ClassNotFoundException {
}
}
byte[] data = IOUtil.readStream(res.openStream(), true);

// Add a CodeSource via a ProtectionDomain, as code may use this to find its own jars.
CodeSource cs = new CodeSource(res, (Certificate[])null);
PermissionCollection pc = new Permissions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.io.ByteArrayOutputStream;
import java.io.File;

import java.lang.reflect.Modifier;
import java.net.URLClassLoader;
import java.util.Iterator;
import java.util.LinkedList;
Expand Down Expand Up @@ -105,7 +106,7 @@ private void loadLangPackage() {
}
}
}

private void addTypes(List<String> files, List<SymbolAction> actions, Node node) {
for (String classFile: files) {
if (isClassFile(classFile) && !isAnonymousClass(classFile)) {
Expand All @@ -115,7 +116,7 @@ private void addTypes(List<String> files, List<SymbolAction> actions, Node node)
}
}
}

private boolean isClassFile(String classFile) {
return classFile.endsWith(".class");
}
Expand Down

0 comments on commit 49c6e2a

Please sign in to comment.