Catch UnsupportedOperationException thrown by Resource.getUrl()
This commit is contained in:
parent
fdf3915d9e
commit
48489e8200
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,11 @@ public final class TypeManager {
|
||||||
if (name.endsWith(".jar")) {
|
if (name.endsWith(".jar")) {
|
||||||
if (!jarfiles.contains(name)) {
|
if (!jarfiles.contains(name)) {
|
||||||
jarfiles.add(name);
|
jarfiles.add(name);
|
||||||
|
try {
|
||||||
loader.addURL(resource.getUrl());
|
loader.addURL(resource.getUrl());
|
||||||
|
} catch (UnsupportedOperationException x) {
|
||||||
|
// not implemented by all kinds of resources
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue