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 摘要。