I've defined a IDL which I am compiling via IDLJ.exe. The IDL contains various different enum types. I notice that after code generation into .java source files the enum types are not actually enums but just regular classes with a set of final constants of the same type of the class.
I notice multiple different IDL code generators do this same thing including RTI's rtiddsgen tool.
Is there any particular reason why code generators are not actually generating enums in Java using the java 'enum' keyword? Fields, constructors, and methods are supported inside enum types in java so I don't think that would be a restriction.
Could it be class hierarchy restrictions? I know IDLJ generates classes that extend CORBA utilities, but RTI's rtiddsgen doesn't extend anything like that. Yet they both don't use real enum types.