GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

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

Open
#1,375 2 comments 0 reactions 1 assignee Claimed by @suztomo View on GitHub
bug p3
Dominant language
Java
Stars
163
Forks
80
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.