Fixed issue with duplication of automatic package roots (e.g. myjar.jar!/BOOT-INF/classes/BOOT-INF/classes/path/to/resource
). (#505, thanks to @michael-simons for the bug report and reproducer code.)
Also fixed an issue where closing the InputStream
returned by Resource#open()
wasn't marking the Resource
as closed (which meant the resource couldn't be opened a second time).