Skip to content

Range [0, -1) out of bounds for length 29 in TranspileMojo #3678

Closed
@yegor256

Description

Caused by: java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 29
    at jdk.internal.util.Preconditions$1.apply (Preconditions.java:55)
    at jdk.internal.util.Preconditions$1.apply (Preconditions.java:52)
    at jdk.internal.util.Preconditions$4.apply (Preconditions.java:213)
    at jdk.internal.util.Preconditions$4.apply (Preconditions.java:210)
    at jdk.internal.util.Preconditions.outOfBounds (Preconditions.java:98)
    at jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex (Preconditions.java:112)
    at jdk.internal.util.Preconditions.checkFromToIndex (Preconditions.java:349)
    at java.lang.String.checkBoundsBeginEnd (String.java:4963)
    at java.lang.String.substring (String.java:2925)
    at org.eolang.maven.TranspileMojo.pinfo (TranspileMojo.java:338)

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions