xjjva520 opened a new issue #9766:
URL: https://github.com/apache/dubbo/issues/9766
private void loadDirectory(Map<String, Class<?>> extensionClasses,
LoadingStrategy strategy, String type) {
loadDirectory(extensionClasses, strategy.directory(), type,
strategy.preferExtensionClassLoader(),
strategy.overridden(), strategy.includedPackages(),
strategy.excludedPackages(), strategy.onlyExtensionClassLoaderPackages());
//以前的路径用从com
String oldType = type.replace("org.apache", "com.alibaba");
loadDirectory(extensionClasses, strategy.directory(), oldType,
strategy.preferExtensionClassLoader(),
strategy.overridden(),
strategy.includedPackagesInCompatibleType(), strategy.excludedPackages(),
strategy.onlyExtensionClassLoaderPackages());
}
上述代码oldType 和type一致的情况下,loadDirectory会执行两遍,且没有任何意义,为啥要这样做?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]