IcedTea-Web icon indicating copy to clipboard operation
IcedTea-Web copied to clipboard

Work around usage of CachedJarFileCallback

Open blackdrag opened this issue 6 months ago • 0 comments

In Java24 the interface URLJarFileCallBack is removed as well as the mechanism behind it. This mechanism allows to intercept the download of a JAR in for example a class loader to add custom logic. Because of us setting CachedJarFileCallback actively and that class implementing the now no longer available interface the execution on Java 24 fails with a ClassNotFoundException. This PR tries to keep the mechanism for the class loader as good as possible by using the tracker logic directly and removes the callbacks.

One disadvantage is that the class loader no longer shows the remote URLs in the classpath.

blackdrag avatar Apr 09 '25 08:04 blackdrag