You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dubbo-compatible @SPI interface compatible not work #6428
publicstatic <T> ExtensionLoader<T> getExtensionLoader(Class<T> type) {
.....
if (!withExtensionAnnotation(type)) {
thrownewIllegalArgumentException("Extension type (" + type +
") is not an extension, because it is NOT annotated with @" + SPI.class.getSimpleName() + "!");
}
....
returnloader;
}
In ExtensionLoader#getExtensionLoader will check failed and throw Exception.
BTW, ExtensionLoader not provided compatible class.
Activity
chickenlj commentedon Jul 8, 2020
I've added @SPI to alibaba.ExtensionFactory in #6436
Why do we need a compatible ExtensionLoader, could you please further explain?