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
Non-sealed abstract classes seem to not be handled properly.
I found a few threads on this since they were a preview feature, but not much since they were released.
This seems to fail with different errors depending on the order of the abstract and non-sealed tokens abstract non-sealed: com.google.googlejavaformat.java.FormatterException: 3:2: error: expected token: 'non'; generated class instead
non-sealed abstract: com.google.googlejavaformat.java.FormatterException: 3:9: error: class, interface, enum, or record expected
Non-sealed abstract classes seem to not be handled properly.
I found a few threads on this since they were a preview feature, but not much since they were released.
This seems to fail with different errors depending on the order of the
abstract
andnon-sealed
tokensabstract non-sealed
:com.google.googlejavaformat.java.FormatterException: 3:2: error: expected token: 'non'; generated class instead
non-sealed abstract
:com.google.googlejavaformat.java.FormatterException: 3:9: error: class, interface, enum, or record expected
here is an example project and the full stack trace provided by spotless
https://github.com/StefanPuia/google-java-format-java-17-sealed
https://github.com/StefanPuia/google-java-format-java-17-sealed/runs/4512594407?check_suite_focus=true#step:4:195
The text was updated successfully, but these errors were encountered: