[jacorb-developer] JacOrb extracting enum values

Dimitris Zampouras dzampouras at gmail.com
Fri Mar 10 10:54:15 CET 2017


Hello everyone!

I am new to Corba and I am having a hard time extracting an enum value 
from an any object.

 From what I have gathered an enum value holds some data members like an 
array containing all the enum types.
I suppose there should be some kind of integer inside the Any that shows 
which one of the enums it refers to.

The problem is that I cannot extract from the enum Any that int value. 
All integer extractions fail( the long too etc.).

Am I in the correct path here? Do you have any sample code that can help?

I am currently using JacOrb 3.8 and Java 1.7

Prior to changing to JacOrb I could extract the integer value from the 
enum type

Thank you in advance!

dzamp



More information about the jacorb-developer mailing list