Skip to content

Work around usage of CachedJarFileCallback#969

Draft
blackdrag wants to merge 1 commit intoAdoptOpenJDK:masterfrom
blackdrag:feature/java24_preparation
Draft

Work around usage of CachedJarFileCallback#969
blackdrag wants to merge 1 commit intoAdoptOpenJDK:masterfrom
blackdrag:feature/java24_preparation

Conversation

@blackdrag
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant