GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

StaticLinkageChecker to show compatible/incompatible Maven artifact for linkage errors

Offen
#286 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement p3
Vorherrschende Sprache
Java
Sterne
163
Forks
80
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

As of now, investigating errors in static linkage report are not straightforward. This is partly because StaticLinkageChecker shows the linkage errors without expected version from the source

```
grpc-netty-shaded-1.17.1.jar (1 errors):
MethodSymbolReference{sourceClassName=io.grpc.netty.shaded.io.netty.util.internal.logging.Log4JLogger, targetClassName=org.apache.log4j.Logger, methodName=isTraceEnabled, descriptor=()Z}
```

From this output, the reader is not sure what version of log4j the source (grpc-netty-shaded-1.17.1.jar) is expecting.

This ticket is to include the information of expected and actual versions. The enhanced output will look like:

```
grpc-netty-shaded-1.17.1.jar (1 errors):
MethodSymbolReference{sourceClassName=io.grpc.netty.shaded.io.netty.util.internal.logging.Log4JLogger, targetClassName=org.apache.log4j.Logger, methodName=isTraceEnabled, descriptor=()Z}
grpc-netty-shaded-1.17.1 expects log4j-1.2.12.jar but log4j-1.2.6.jar is found in the class path
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.