Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
suztomo opened this issue Feb 19, 2021 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed p2

Comments

@suztomo
Copy link
Contributor

suztomo commented Feb 19, 2021

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

@elharo elharo added p2 bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Jul 22, 2021
@NabeelShahid7
Copy link

I would like to work on this issue. @elharo

@suztomo
Copy link
Contributor Author

suztomo commented Sep 10, 2022

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

@Manishpandey11
Copy link

Hi
I want to contribute by work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed p2
Projects
None yet
Development

No branches or pull requests

4 participants