Subject: bug#61115: 29.0.60; java-ts-mode - Wrong indentation for class members with annotation

From: Theodor Thornhill <[email-masked]>
Date: Sat, 28 Jan 2023 20:00:26 +0100

太阳 <[email-masked]> writes:

> For java class members without any access modifier (aka default
> modifier), if you add an annotation to it, java-ts-mode will add
> another level of indentation, making it look like:
>
> public class T {
>     @Autowired
>         String a;
> }
>
> This behaviour is different from java-mode's too.
>
> If you add private before 'String a;', java-ts-mode will indent it well
>
>
> public class T {
>     @Autowired
>     private String a;
> }
>

Hi and thanks for your clear report.

This should be fixed on latest emacs-29 branch, and soon on master :-)

Theo