mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
fix loading extensions: Lombok extensions in external jar files were not included by class loader
This commit is contained in:
1 parent
ff1c01d9e9
commit
9773530fa9
1 file changed
+2
-2
@@ -436,14 +436,14 @@ class ShadowClassLoader extends ClassLoader {
|
||||
Enumeration<URL> sec = super.getResources(name);
|
||||
while (sec.hasMoreElements()) {
|
||||
URL item = sec.nextElement();
|
||||
if (!partOfShadow(item.toString(), name)) vector.add(item);
|
||||
if (isPartOfShadowSuffix(item.toString(), name, sclSuffix)) vector.add(item);
|
||||
}
|
||||
|
||||
if (altName != null) {
|
||||
Enumeration<URL> tern = super.getResources(altName);
|
||||
while (tern.hasMoreElements()) {
|
||||
URL item = tern.nextElement();
|
||||
if (!partOfShadow(item.toString(), altName)) vector.add(item);
|
||||
if (isPartOfShadowSuffix(item.toString(), altName, sclSuffix)) vector.add(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user