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:
@@ -50,7 +50,12 @@ public class LaunchedURLClassLoader extends URLClassLoader {
|
||||
public URL findResource(String name) {
|
||||
Handler.setUseFastConnectionExceptions(true);
|
||||
try {
|
||||
return super.findResource(name);
|
||||
try {
|
||||
return super.findResource(name);
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
finally {
|
||||
Handler.setUseFastConnectionExceptions(false);
|
||||
|
||||
Reference in New Issue
Block a user