Fixed compile error

This commit is contained in:
Lenni0451 2023-09-15 17:19:51 +02:00
parent 53a091ba8f
commit a1e14e5610
No known key found for this signature in database
GPG key ID: 5D59B86635AD3F2F

View file

@ -39,7 +39,7 @@ public class URLClassProvider implements IClassProvider {
}
@Override
public byte[] getClass(String name) {
public byte[] getClass(String name) throws ClassNotFoundException {
for (URL url : this.urls) {
try (InputStream is = new URL("jar:" + url + "!/" + ASMUtils.slash(name) + ".class").openStream()) {
return IOUtils.toByteArray(is);