Reinstate escape hatch for findResource()
Reinstate the defensive call of super.findResource() in LaunchedURLClassLoader. Closes gh-5650 See gh-486
This commit is contained in:
parent
6d23ce2ada
commit
cc140b2c34
|
@ -49,9 +49,14 @@ public class LaunchedURLClassLoader extends URLClassLoader {
|
||||||
@Override
|
@Override
|
||||||
public URL findResource(String name) {
|
public URL findResource(String name) {
|
||||||
Handler.setUseFastConnectionExceptions(true);
|
Handler.setUseFastConnectionExceptions(true);
|
||||||
|
try {
|
||||||
try {
|
try {
|
||||||
return super.findResource(name);
|
return super.findResource(name);
|
||||||
}
|
}
|
||||||
|
catch (IllegalArgumentException ex) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
finally {
|
finally {
|
||||||
Handler.setUseFastConnectionExceptions(false);
|
Handler.setUseFastConnectionExceptions(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue