GNU bug report logs - #61115
29.0.60; java-ts-mode - Wrong indentation for class members with annotation

Previous Next

Package: emacs;

Reported by: 太阳 <zjyzhaojiyang <at> hotmail.com>

Date: Sat, 28 Jan 2023 09:24:02 UTC

Severity: normal

Found in version 29.0.60

Fixed in version 29.1

Done: Theodor Thornhill <theo <at> thornhill.no>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: 太阳 <zjyzhaojiyang <at> hotmail.com>
Cc: 61115 <at> debbugs.gnu.org
Subject: bug#61115: 29.0.60; java-ts-mode - Wrong indentation for class members with annotation
Date: Sat, 28 Jan 2023 20:00:26 +0100
太阳 <zjyzhaojiyang <at> hotmail.com> 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




This bug report was last modified 2 years and 192 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.