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
What is the full stack trace of any errors you encountered?
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
java.base/java.util.Objects.checkIndex(Objects.java:385)
java.base/java.util.ArrayList.get(ArrayList.java:427)
org.openrewrite.staticanalysis.DefaultComesLastVisitor.isDefaultCase(DefaultComesLastVisitor.java:189)
You may want to check all senders of Case.getExpressions(). This is the same kind of bug like openrewrite/rewrite#4928 and there might be more. In my own projects leaving calls to newly deprecated (own) methods breaks the build, and thereby avoids this kind of bug. Since that's based on the Eclipse Compiler (ECJ) I can't say whether there is a similar option for your gradle build.
What is the full stack trace of any errors you encountered?
You may want to check all senders of Case.getExpressions(). This is the same kind of bug like openrewrite/rewrite#4928 and there might be more. In my own projects leaving calls to newly deprecated (own) methods breaks the build, and thereby avoids this kind of bug. Since that's based on the Eclipse Compiler (ECJ) I can't say whether there is a similar option for your gradle build.
Are you interested in contributing a fix to OpenRewrite?
The text was updated successfully, but these errors were encountered: