Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enums Problem

 
Animesh Saxena
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i am declaring enums without a class for example consider this class file.


It gives some error in JavaDoc...and where this enum is used in a class. JavaDoc shows some error. Should enums always be in classes even if they are public. Or is there any alternative?


Animesh
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What errors would you be getting?
That's pretty normal code for a simple Enum (they can get a lot more complicated than that).
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"some error in JavaDoc" - like what error in JavaDoc?

This is obviously not a SCJD specific question, so I am moving it to Java in General Intermediate.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I compiled and ran javadoc on your enum with no problems. That was in the BlueJ IDE. Perhaps it is some other file in your project causing the problem you are experiencing.

From the command line I get:

[ September 02, 2006: Message edited by: Barry Gaunt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic