IG|IPP: missorted modifiers bug

Hi,

I have a "private abstract static" class and this is highlighted yellow.
But clicking the intention "Sort modifiers" does nothing.

Tom

0
Avatar
Permanently deleted user

Same happens also with "public abstract static" classes.

Tom

0

A method can't be both abstract and static can it? My IDEA highlights that as "Illegal combination of modifiers: 'abstract' and 'static'"

Bas

0
Avatar
Permanently deleted user

I was talking about (inner) classes, not methods.

Tom

0
Avatar
Permanently deleted user

Thomas Singer (MoTJ) wrote:

I was talking about (inner) classes, not methods.

Tom


Just out of curiosity, what would be your reasoning for having an inner
class that is private abstract static?

0

Whoops, sorry for not reading correctly. This is actually a known bug and I have submitted a fix for this back in July if I recall correctly. Unfortenately that wasn't in time for the 4.5 release.
See http://www.intellij.net/tracker/idea/viewSCR?publicId=36391

0
Avatar
Permanently deleted user

Just out of curiosity, what would be your reasoning for having an inner
class that is private abstract static?


It's the abstract super class of two other inner classes.

Tom

0

请先登录再写评论。