GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

False Negative in example-problems/no-such-method-error-signature-mismatch

未关闭
#1,375 2 条评论 0 个 reaction 已指派 1 人 已被 @suztomo 认领 在 GitHub 查看
bug p3
主要语言
Java
星标
163
派生
80
PR 合并指标
30 天内没有已合并 PR

描述

Fork of one problem found in #1372.

Since #1302, in example-problems/no-such-method-error-signature-mismatch, LinkageChecker does not report the DnsNameResolver error because its [`DnsNameResolver$ResourceResolverFactory.getResourcResolverFactory(ClassLoader loader)`](https://github.com/grpc/grpc-java/blob/v1.17.0/core/src/main/java/io/grpc/internal/DnsNameResolver.java#L652) catches ClassNotFoundException. `ClassDumper.catchesLinkageError` returns true for the class, suppressing the linkage error.

This is false negative because `mvn exec:java` in the example project fails because of NoSuchMethodException.

Screen Shot 2020-04-27 at 14 18 12

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。