I'm using Eclipse 2018-09 (but same issue also in other versions)
When I write code using .class
, for example for logger:
private static final Logger logger = Logger.getLogger(MyServiceImpl.class);
.class
is never auto suggested by Eclipse even by clicking CtrlSpace
I tried to check all Java auto suggest methods in code assist prefernces
Why valid .class
isn't suggested by Eclipse? can it be enabled?
No .class
in auto suggestion:
I found the issue,
It was because I added Type Filter of java.lang.Object
(to avoid suggesting Object methods)
When I remove/uncheck it .class
is added to suggestion