GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

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

Aperta
#1,375 2 commenti 0 reazioni 1 assegnatario Rivendicata da @suztomo Vedi su GitHub
bug p3
Lingua principale
Java
Stelle
163
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.