I'm trying to upgrade to spring version 6.1.x. Due to the specific nature of a project, we use a custom class loader and custom java.net.URLStreamHandler which handles the opening of the JAR files.
Up to version 6.0.x the URL object remains as is in PathMatchingResourcePatternResolver#convertClassLoaderURL but since version 6.1.x the whole URL object is replaced by a new one keeping only the URL string.
Currently, there is no method how to keep the URLStreamHandler as the framework constructs a new URL. It would be beneficial to have the possibility to turn off this behaviour or somehow pass the handler of the original URL to the new one constructed.