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


Message #13 received at 61115 <at> debbugs.gnu.org (full text, mbox):

From: 太阳 <zjyzhaojiyang <at> hotmail.com>
To: Theodor Thornhill <theo <at> thornhill.no>
Cc: 61115 <at> debbugs.gnu.org
Subject: Re: bug#61115: 29.0.60; java-ts-mode - Wrong indentation for class
 members with annotation
Date: Sun, 29 Jan 2023 04:29:55 +0000
I've updated to the latest emacs-29 and it works as expected. Thanks.

Theodor Thornhill 在 2023年01月29日 星期日 03时00分26秒 (+08:00) 写道:

> 太阳 <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
> 

-- 
发送自 Vivaldi 邮件。访问 vivaldi.com 免费下载




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.