GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

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

Aperta
#1,948 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug good first issue help wanted p2
Lingua principale
Java
Stelle
163
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.