IDEA-200527 java.net.URISyntaxException when PatternInstrumenter instruments code

GitOrigin-RevId: 18b29edf49024559b7a58ee4372d53099fedd3e5
This commit is contained in:
Eugene Zhuravlev
2019-07-29 21:57:45 +03:00
committed by intellij-monorepo-bot
parent adcbdc303e
commit 79b28731c5
@@ -527,8 +527,9 @@ public class InstrumentationClassFinder {
private static Loader getLoader(final URL url, int index) throws IOException {
String s;
final String protocol = url.getProtocol();
try {
s = url.toURI().getSchemeSpecificPart();
s = Loader.JRT_PROTOCOL.equals(protocol)? url.getFile() : url.toURI().getSchemeSpecificPart();
}
catch (URISyntaxException thisShouldNotHappen) {
thisShouldNotHappen.printStackTrace();
@@ -536,7 +537,6 @@ public class InstrumentationClassFinder {
}
if (s != null && s.length() > 0) {
final String protocol = url.getProtocol();
if (Loader.JRT_PROTOCOL.equals(protocol)) {
final Loader jrtLoader = JrtClassHolder.create(url, index);
if (jrtLoader != null) {