cloud-opensource-java
cloud-opensource-java copied to clipboard
Tools for detecting and avoiding linkage errors in GCP open source projects
Something like "106 symbols causing linkage errors on 516 references."
When suggesting upgrading the artifact itself for global upper bounds, we don't need to say, "Suggested updates to bring this artifact into sync with the highest versions of its dependencies...
Currently it looks something like this: mockito-core-2.18.0.jar (2 errors): org.mockito.internal.creation.bytebuddy.MockMethodDispatcher is not found, referenced from org.mockito.internal.creation.bytebuddy.MockMethodAdvice$ForReadObject org.mockito.internal.creation.bytebuddy.MockMethodDispatcher is not found, referenced from org.mockito.internal.creation.bytebuddy.MockMethodAdvice$ForEquals org.mockito.internal.creation.bytebuddy.MockMethodDispatcher is not found, referenced from org.mockito.internal.creation.bytebuddy.MockMethodAdvice$SerializableRealMethodCall...
and it should with the label (provided)
Libraries should use API interfaces as much as possible. In terms of logging, depend on Logging API interfaces (e.g., slf4j). However, in order for slf4j to print out the log...
Before: ``` targetClassName=com.google.common.base.Verify, methodName=verify, interfaceMethod=false, descriptor=(ZLjava/lang/String;Ljava/lang/Object;)V ``` Better: ``` void com.google.common.base.Verify.verify(boolean, java.lang.String, java.lang.Object) ``` (feedback from Garrett) Created branch "human_friendly_signature" but I may change the structure of JarLinkageError to hold...
Output user-friendly error messages when XML is malformed.
It seems trying to fetch Maven artifacts from remote repository unnecessarily. It would take 40000 seconds to fill 167 x 167 table for pair-wise comparison. ``` Running io.grpc:grpc-auth:jar:1.18.0 com.google.cloud:google-cloud-monitoring:jar:1.63.0 (923/27889)....
# Background When there is a linkage error, people need to check why it happens ([Example case of google-api-client-1.27.0](https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/468)). It would be nice if the tool provides a diagnosis. #...