Enum missing from class types

Answered

I recently upgraded to 2016.3.2. Enum is missing from types in the Create New Class dialog. I get Class, Interface, JavaFXApplication, Singleton.

8 comments
Comment actions Permalink

Can't reproduce:

 

1
Comment actions Permalink

This is what I have

I do see Enum in Templates, but not in the list of class types.

0
Comment actions Permalink

Reinstalled the latest download. Enum and Annotation restored. Thanks

0
Comment actions Permalink

Hi,

I have installed the latest CE version + deleted all the folders mentioned in https://intellij-support.jetbrains.com/hc/articles/206544519

after which I started the IDE and the issue persists
I'm using Mac

 

Regards,

 

Tsachi

0
Comment actions Permalink

Did IDE ask to import the settings on the first start? Did you import any?

0
Comment actions Permalink

Happened to me when I used a lower SDK that doesn't know what enum is. Go to your project structure and confirm you have the right SDK or java version and Project-Language-Level set appropriately with regards to your java version

0
Comment actions Permalink

Best Answer to solve missing Java Types like the simple enum (frustrating me for hours - now it all works). 

Lots of people have been searching for this fix for years. I finally found it here in the answer by Rafa Romero On January 4, 2017. 

Go here: https://stackoverflow.com/questions/41460182/intellij-doesnt-recognize-java-enum?answertab=votes#tab-top

It comes down to fixing the Project language level.  JetBrains is awesome, but it doesn't do this automatically.

Thank you Rafa 

Mitch Millar

 

0

Please sign in to leave a comment.