mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-200527 java.net.URISyntaxException when PatternInstrumenter instruments code
GitOrigin-RevId: 18b29edf49024559b7a58ee4372d53099fedd3e5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
adcbdc303e
commit
79b28731c5
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user