You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LinkageCheckerMain to provide clear error message when the supplied coordinates are invalid #1948
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
I investigated this issue and reproduced the IndexOutOfBoundsException when supplying an invalid artifact coordinate.
I've implemented a fix that detects when the resolved classpath has fewer entries than the requested artifacts and reports a clear resolution error.
I've added a regression test, and both the regression test and the existing BOM integration test pass locally.
My changes are committed locally (a5e5b535).
Could you please confirm whether this issue is still relevant? If so, would you consider adding the Accepting Contributions label so I can submit a PR?
Activity
NabeelShahid7 commentedon Sep 10, 2022
I would like to work on this issue. @elharo
suztomo commentedon Sep 10, 2022
This issue might be outdated. Check whether the problem still exists or not.
Manishpandey11 commentedon Sep 20, 2022
Hi
I want to contribute by work on this issue
Indu34569 commentedon Nov 3, 2026
Hi! I'm a beginner Java developer interested in contributing to this issue.
I noticed the earlier comment mentioning that the issue might be outdated. Is this problem still reproducible with the current codebase?
If it is, would you be open to accepting a contribution from me? I'd be happy to investigate and work on a fix.
Thank you!
Indu34569 commentedon Nov 4, 2026
Hi maintainers,
I investigated this issue and reproduced the
IndexOutOfBoundsExceptionwhen supplying an invalid artifact coordinate.I've implemented a fix that detects when the resolved classpath has fewer entries than the requested artifacts and reports a clear resolution error.
I've added a regression test, and both the regression test and the existing BOM integration test pass locally.
My changes are committed locally (
a5e5b535).Could you please confirm whether this issue is still relevant? If so, would you consider adding the
Accepting Contributionslabel so I can submit a PR?Thank you!