cloud-opensource-java icon indicating copy to clipboard operation
cloud-opensource-java copied to clipboard

LinkageCheckerMain to provide clear error message when the supplied coordinates are invalid

Open suztomo opened this issue 4 years ago • 3 comments

When I pass an invalid coordinates to LinkageCheckerMain, it throws IndexOutOfBoundsException. This does not tell the cause of the error.

> Task :checkJavaLinkage
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.IndexOutOfBoundsException: end index (1) must not be greater than size (0)
        at com.google.common.base.Preconditions.checkPositionIndexes(Preconditions.java:1420)
        at com.google.common.collect.ImmutableList.subList(ImmutableList.java:433)
        at com.google.cloud.tools.opensource.classpath.LinkageCheckerMain.checkArtifacts(LinkageCheckerMain.java:159)
        at com.google.cloud.tools.opensource.classpath.LinkageCheckerMain.main(LinkageCheckerMain.java:66)

> Task :checkJavaLinkage FAILED

suztomo avatar Feb 19 '21 22:02 suztomo

I would like to work on this issue. @elharo

NabeelShahid7 avatar Sep 10 '22 09:09 NabeelShahid7

This issue might be outdated. Check whether the problem still exists or not.

suztomo avatar Sep 10 '22 12:09 suztomo

Hi I want to contribute by work on this issue

Manishpandey11 avatar Sep 20 '22 17:09 Manishpandey11