(URL[] urls, ClassLoader parent)
| 21 | private final File jarFile; |
| 22 | |
| 23 | public URLClassLoader(URL[] urls, ClassLoader parent) { |
| 24 | super(parent); |
| 25 | if(urls.length != 1) { |
| 26 | throw new UnsupportedOperationException(); |
| 27 | } |
| 28 | if(!urls[0].getProtocol().equals("file")) { |
| 29 | throw new UnsupportedOperationException(urls[0].getProtocol()); |
| 30 | } |
| 31 | this.jarFile = new File(urls[0].getFile()); |
| 32 | } |
| 33 | |
| 34 | |
| 35 | protected Class findClass(String name) throws ClassNotFoundException { |
nothing calls this directly
no test coverage detected