This commit is contained in:
Looly 2023-01-17 17:20:06 +08:00
parent 8eaac526a2
commit ce3881fc78

View File

@ -248,7 +248,7 @@ public class ClassScanner implements Serializable {
this.classes.clear();
this.classesOfLoadError.clear();
for (final URL url : ResourceUtil.getResourceUrlIter(this.packagePath)) {
for (final URL url : ResourceUtil.getResourceUrlIter(this.packagePath, this.classLoader)) {
switch (url.getProtocol()) {
case "file":
scanFile(new File(URLDecoder.decode(url.getFile(), this.charset)), null);