We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Override @SneakyThrows public Response intercept(Chain chain) throws IOException { Request request = chain.request(); Method method = Objects.requireNonNull(request.tag(Invocation.class)).method(); RetrofitClient retrofitClient = AnnotatedElementUtils.findMergedAnnotation(method.getDeclaringClass(), RetrofitClient.class); // 如果接口有继承关系,这里返回 null,导致 NPE ErrorDecoder errorDecoder = AppContextUtils.getBeanOrNew(applicationContext, retrofitClient.errorDecoder());
The text was updated successfully, but these errors were encountered:
interface A{ @GET("/hello") Object hello(); } @RetrofitClient(baseUrl = "urlB") interface B extends A{ } @RetrofitClient(baseUrl = "urlC") interface C extends A{ }
Sorry, something went wrong.
这种情况,目前是不支持的,此时拿不到retrofitClient。
根本原因是retrofit不支持,已经向Retrofit提过相关issue了,等待后续retrofit支持。
See prior issue at #109 (which I think should've been left open)
No branches or pull requests
The text was updated successfully, but these errors were encountered: