diffplug / diffplug/spotless

dbeaver throws java.lang.IndexOutOfBoundsException on `set mode`

Open
#1,552 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

The following H2 configuration statement causes dbeaver to throw an exception:
```
SET MODE PostgreSQL;
```
```
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 16
```

The file is still formatted on `spotless:apply` and in most projects the entire spotless process succeeds, but sometimes the next formating step freezes.

Maven 3.8.7
OpenJDK 11.0.18
spotless 2.31.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.