Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public MemoryClassLoader(Map<String, byte[]> mapClassBytes, ClassLoader parent)
this.mapClassBytes = mapClassBytes;

try {
URL url = new URL(MEMORY_CLASS_URL);
URL url = new java.net.URI(MEMORY_CLASS_URL).toURL();
CodeSource codeSource = new CodeSource(url, (Certificate[]) null);
protectionDomain = new ProtectionDomain(codeSource, null, this, new Principal[0]);
} catch (MalformedURLException e) {
} catch (URISyntaxException | MalformedURLException e) {
throw new RuntimeException(e);
}
}
Expand Down